Patchwork D3012: scmutil: deprecate revpairnodes()

login
register
mail settings
Submitter phabricator
Date April 1, 2018, 5:06 p.m.
Message ID <5ced0c2d06f8b8c3d3c865e3dff91c36@localhost.localdomain>
Download mbox | patch
Permalink /patch/30126/
State Not Applicable
Headers show

Comments

phabricator - April 1, 2018, 5:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd29f6fbd1181: scmutil: deprecate revpairnodes() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3012?vs=7492&id=7503

REVISION DETAIL
  https://phab.mercurial-scm.org/D3012

AFFECTED FILES
  mercurial/scmutil.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: yuja, mercurial-devel

Patch

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()