mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Don't ignore everything if all hgignore files are empty.
This commit is contained in:
parent
27ace0dd4d
commit
2aaeef325d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user