changeset 911:d46af8e6b858

Fix .hgignore parsing if last line has no EOL, ignore trailing white space. (and don't use tabs in python code)
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 15 Aug 2005 08:08:11 +0100
parents 891b6a262c4b
children 302f83b85054
files mercurial/hg.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: