D3712: files: drop now-unnecessary filtering of removed dirstate files

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Jun 12 08:26:51 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0c7970d4e6b4: files: drop now-unnecessary filtering of removed dirstate files (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3712?vs=9011&id=9020

REVISION DETAIL
  https://phab.mercurial-scm.org/D3712

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -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]



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list