mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
dirstate.status: return explicit unknown files even when not asked
dirstate.walk will return unknown files that were explicitly requested, even if listunknown is false. There's no point in dropping these files on the floor in dirstate.status. This has no effect on any current callers, because all of them assume the unknown list is empty and ignore it. Future callers may find it useful, though.
This commit is contained in:
parent
7951372d13
commit
7decbaaad4
@ -815,7 +815,7 @@ class dirstate(object):
|
||||
if (listignored or mexact(fn)) and dirignore(fn):
|
||||
if listignored:
|
||||
iadd(fn)
|
||||
elif listunknown:
|
||||
else:
|
||||
uadd(fn)
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user