files: only check for removed, not unknown or missing
authorSiddharth Agarwal <sid0@fb.com>
Tue, 30 Sep 2014 15:21:35 -0700
changeset 22593 ec47d4fde26d
parent 22592 ff3ccc592af4
child 22594 1257cc6c1a2f
files: only check for removed, not unknown or missing ctx.matches() doesn't return unknown files, and repo.dirstate[f] never returns '!' for an answer.
mercurial/commands.py
--- a/mercurial/commands.py	Tue Sep 30 14:39:58 2014 -0700
+++ b/mercurial/commands.py	Tue Sep 30 15:21:35 2014 -0700
@@ -3220,7 +3220,7 @@
 
     m = scmutil.match(ctx, pats, opts)
     for f in ctx.matches(m):
-        if rev is None and repo.dirstate[f] in 'r?!':
+        if rev is None and repo.dirstate[f] == 'r':
             continue
         fm.startitem()
         if ui.verbose: