scmutil: deprecate revpairnodes()
authorMartin von Zweigbergk <martinvonz@google.com>
Sat, 31 Mar 2018 23:34:15 -0700
changeset 37259 d29f6fbd1181
parent 37258 f654105f1517
child 37260 8e57c3b0dce4
scmutil: deprecate revpairnodes() Differential Revision: https://phab.mercurial-scm.org/D3012
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Sun Apr 01 09:30:44 2018 -0700
+++ b/mercurial/scmutil.py	Sat Mar 31 23:34:15 2018 -0700
@@ -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()