##// END OF EJS Templates
An empty .hgignore file must cause us to ignore nothing, not everything!
Bryan O'Sullivan -
r735:3433b228 default
parent child Browse files
Show More
@@ -299,9 +299,12 b' class dirstate:'
299 bigpat.append(util.pconvert(pat[:-1]))
299 bigpat.append(util.pconvert(pat[:-1]))
300 except IOError: pass
300 except IOError: pass
301
301
302 s = "(?:%s)" % (")|(?:".join(bigpat))
302 if bigpat:
303 r = re.compile(s)
303 s = "(?:%s)" % (")|(?:".join(bigpat))
304 self.ignorefunc = r.search
304 r = re.compile(s)
305 self.ignorefunc = r.search
306 else:
307 self.ignorefunc = util.never
305
308
306 return self.ignorefunc(f)
309 return self.ignorefunc(f)
307
310
General Comments 0
You need to be logged in to leave comments. Login now