dirstate.status: return explicit unknown files even when not asked
authorSiddharth Agarwal <sid0@fb.com>
Mon, 14 Oct 2013 00:25:29 -0400
changeset 19910 601944f41257
parent 19909 df54786a3203
child 19911 1c58e368fbfd
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.
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Mon Oct 14 18:29:56 2013 +0200
+++ b/mercurial/dirstate.py	Mon Oct 14 00:25:29 2013 -0400
@@ -815,7 +815,7 @@
                 if (listignored or mexact(fn)) and dirignore(fn):
                     if listignored:
                         iadd(fn)
-                elif listunknown:
+                else:
                     uadd(fn)
                 continue