Patchwork [08,of,12] scmutil: drop deprecated revpairnodes()

login
register
mail settings
Submitter Matt Harbison
Date May 11, 2018, 5:11 a.m.
Message ID <bd95f109936c19621c00.1526015481@Envy>
Download mbox | patch
Permalink /patch/31497/
State Accepted
Headers show

Comments

Matt Harbison - May 11, 2018, 5:11 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1526003901 14400
#      Thu May 10 21:58:21 2018 -0400
# Node ID bd95f109936c19621c0021fa292f61d88ce590bc
# Parent  5c36273e830d02439eb17cd6f9a1d72b1ccdb911
scmutil: drop deprecated revpairnodes()

Patch

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]