D3012: scmutil: deprecate revpairnodes()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sun Apr 1 07:11:23 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/D3012
AFFECTED FILES
mercurial/scmutil.py
CHANGE DETAILS
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -447,6 +447,7 @@
return tree and tree[0] in ('range', 'rangepre', 'rangepost', 'rangeall')
def revpairnodes(repo, revs):
+ repo.ui.deprecwarn("revpairnodes is deprecated, please use revpair", "4.6")
ctx1, ctx2 = revpair(repo, revs)
return ctx1.node(), ctx2.node()
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list