amend: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 27 Jul 2018 14:49:45 -0700
changeset 38769 e252f136b948
parent 38768 afc4ad706f9c
child 38770 260c17eaf3f7
amend: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2) Differential Revision: https://phab.mercurial-scm.org/D3996
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Jul 19 23:22:05 2018 -0700
+++ b/mercurial/cmdutil.py	Fri Jul 27 14:49:45 2018 -0700
@@ -2428,7 +2428,7 @@
         if len(old.parents()) > 1:
             # ctx.files() isn't reliable for merges, so fall back to the
             # slower repo.status() method
-            files = set([fn for st in repo.status(base, old)[:3]
+            files = set([fn for st in base.status(old)[:3]
                          for fn in st])
         else:
             files = set(old.files())