From patchwork Sun Apr 1 07:11:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3012: scmutil: deprecate revpairnodes() From: phabricator X-Patchwork-Id: 30107 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 1 Apr 2018 07:11:23 +0000 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 To: martinvonz, #hg-reviewers Cc: mercurial-devel 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()