Show More
@@ -269,7 +269,8 b' class repository:' | |||
|
269 | 269 | try: |
|
270 | 270 | l = open(os.path.join(self.root, ".hgignore")).readlines() |
|
271 | 271 | for pat in l: |
|
272 | self.ignorelist.append(re.compile(pat[:-1])) | |
|
272 | if pat != "\n": | |
|
273 | self.ignorelist.append(re.compile(pat[:-1])) | |
|
273 | 274 | except IOError: pass |
|
274 | 275 | for pat in self.ignorelist: |
|
275 | 276 | if pat.search(f): return True |
General Comments 0
You need to be logged in to leave comments.
Login now