# HG changeset patch # User Siddharth Agarwal # Date 1412115695 25200 # Node ID ec47d4fde26db0d76d087ca74825d115d2b9486f # Parent ff3ccc592af4ba3c402c8adc996d35830b301633 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. diff -r ff3ccc592af4 -r ec47d4fde26d 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: