[PATCH 08 of 12] scmutil: drop deprecated revpairnodes()
Matt Harbison
mharbison72 at gmail.com
Fri May 11 01:11:21 EDT 2018
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1526003901 14400
# Thu May 10 21:58:21 2018 -0400
# Node ID bd95f109936c19621c0021fa292f61d88ce590bc
# Parent 5c36273e830d02439eb17cd6f9a1d72b1ccdb911
scmutil: drop deprecated revpairnodes()
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -565,11 +565,6 @@ def _pairspec(revspec):
tree = revsetlang.parse(revspec)
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()
-
def revpair(repo, revs):
if not revs:
return repo['.'], repo[None]
More information about the Mercurial-devel
mailing list