changeset 19910:601944f41257

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.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 14 Oct 2013 00:25:29 -0400
parents df54786a3203
children 1c58e368fbfd
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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