Patchwork D3997: fix: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)

login
register
mail settings
Submitter phabricator
Date Aug. 1, 2018, 5:08 p.m.
Message ID <654e30d3d32ecd374857d57152156162@localhost.localdomain>
Download mbox | patch
Permalink /patch/33020/
State Not Applicable
Headers show

Comments

phabricator - Aug. 1, 2018, 5:08 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG260c17eaf3f7: fix: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2) (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3997?vs=9688&id=9708

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

AFFECTED FILES
  hgext/fix.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/fix.py b/hgext/fix.py
--- a/hgext/fix.py
+++ b/hgext/fix.py
@@ -267,8 +267,8 @@ 
     """
     files = set()
     for basectx in basectxs:
-        stat = repo.status(
-            basectx, fixctx, match=match, clean=bool(pats), unknown=bool(pats))
+        stat = basectx.status(fixctx, match=match, listclean=bool(pats),
+                              listunknown=bool(pats))
         files.update(
             set(itertools.chain(stat.added, stat.modified, stat.clean,
                                 stat.unknown)))