fix: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 27 Jul 2018 14:46:59 -0700
changeset 38770 260c17eaf3f7
parent 38769 e252f136b948
child 38771 3bd22c4d3711
fix: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2) Differential Revision: https://phab.mercurial-scm.org/D3997
hgext/fix.py
--- a/hgext/fix.py	Fri Jul 27 14:49:45 2018 -0700
+++ b/hgext/fix.py	Fri Jul 27 14:46:59 2018 -0700
@@ -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)))