##// END OF EJS Templates
Fix .hgignore parsing if last line has no EOL, ignore trailing white space....
Thomas Arendsen Hein -
r911:d46af8e6 default
parent child Browse files
Show More
@@ -311,8 +311,8 b' class dirstate:'
311 try:
311 try:
312 l = file(self.wjoin(".hgignore"))
312 l = file(self.wjoin(".hgignore"))
313 for pat in l:
313 for pat in l:
314 if pat != "\n":
314 p = pat.rstrip()
315 p = pat[:-1]
315 if p:
316 try:
316 try:
317 re.compile(p)
317 re.compile(p)
318 except:
318 except:
General Comments 0
You need to be logged in to leave comments. Login now