changeset 38278:0c7970d4e6b4

files: drop now-unnecessary filtering of removed dirstate files workingctx.matches() now filters out removed files. Differential Revision: https://phab.mercurial-scm.org/D3712
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 11 Jun 2018 10:09:35 -0700
parents aaed058a0390
children a8e7ea176437
files mercurial/cmdutil.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon Jun 11 10:05:23 2018 -0700
+++ b/mercurial/cmdutil.py	Mon Jun 11 10:09:35 2018 -0700
@@ -2134,13 +2134,9 @@
     return bad, forgot
 
 def files(ui, ctx, m, fm, fmt, subrepos):
-    rev = ctx.rev()
     ret = 1
-    ds = ctx.repo().dirstate
 
     for f in ctx.matches(m):
-        if rev is None and ds[f] == 'r':
-            continue
         fm.startitem()
         if ui.verbose:
             fc = ctx[f]