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:
Siddharth Agarwal 2013-10-14 00:25:29 -04:00
parent 7951372d13
commit 7decbaaad4

View File

@ -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