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

login
register
mail settings
Submitter phabricator
Date June 12, 2018, 12:26 p.m.
Message ID <f5116eb7f2787fc726f2323163004fff@localhost.localdomain>
Download mbox | patch
Permalink /patch/32073/
State Not Applicable
Headers show

Comments

phabricator - June 12, 2018, 12:26 p.m.
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




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

Patch

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]