Don't ignore everything if all hgignore files are empty.

This commit is contained in:
Thomas Arendsen Hein 2006-03-26 22:32:44 +02:00
parent 27ace0dd4d
commit 2aaeef325d

View File

@ -100,10 +100,10 @@ class dirstate(object):
return False
if not self.ignorefunc:
ignore = self.hgignore()
if ignore:
allpats = []
[allpats.extend(patlist) for patlist in ignore.values()]
if allpats:
try:
allpats = []
[allpats.extend(patlist) for patlist in ignore.values()]
files, self.ignorefunc, anypats = (
util.matcher(self.root, inc=allpats, src='.hgignore'))
except util.Abort: