patch: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 27 Jul 2018 14:48:34 -0700
changeset 38773 59af0c7d103f
parent 38772 af5c0c933af8
child 38774 87a581d1391c
patch: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2) Differential Revision: https://phab.mercurial-scm.org/D4000
mercurial/patch.py
--- a/mercurial/patch.py	Fri Jul 27 14:48:06 2018 -0700
+++ b/mercurial/patch.py	Fri Jul 27 14:48:34 2018 -0700
@@ -2326,7 +2326,7 @@
         relfiltered = True
 
     if not changes:
-        changes = repo.status(ctx1, ctx2, match=match)
+        changes = ctx1.status(ctx2, match=match)
     modified, added, removed = changes[:3]
 
     if not modified and not added and not removed: