# HG changeset patch # User Thomas Arendsen Hein # Date 1124089691 -3600 # Node ID d46af8e6b85874a3ef32ddd545536d41d9da1418 # Parent 891b6a262c4bd0ddc770d965ff5c94602c758b7e Fix .hgignore parsing if last line has no EOL, ignore trailing white space. (and don't use tabs in python code) diff -r 891b6a262c4b -r d46af8e6b858 mercurial/hg.py --- a/mercurial/hg.py Sun Aug 14 22:00:16 2005 -0800 +++ b/mercurial/hg.py Mon Aug 15 08:08:11 2005 +0100 @@ -311,8 +311,8 @@ try: l = file(self.wjoin(".hgignore")) for pat in l: - if pat != "\n": - p = pat[:-1] + p = pat.rstrip() + if p: try: re.compile(p) except: