D3008: diff: use context-returning revpair()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sun Apr 1 07:11:17 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/D3008
AFFECTED FILES
mercurial/commands.py
CHANGE DETAILS
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1878,7 +1878,8 @@
node1 = repo[node2].p1().node()
else:
repo = scmutil.unhidehashlikerevs(repo, revs, 'nowarn')
- node1, node2 = scmutil.revpairnodes(repo, revs)
+ ctx1, ctx2 = scmutil.revpair(repo, revs)
+ node1, node2 = ctx1.node(), ctx2.node()
if reverse:
node1, node2 = node2, node1
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list