D4000: patch: use ctx1.status(ctx2) instead of repo.status(ctx1, ctx2)
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Aug 1 16:31:01 UTC 2018
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4000
AFFECTED FILES
mercurial/patch.py
CHANGE DETAILS
diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -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:
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list