Mercurial > hg-stable
diff mercurial/scmutil.py @ 37261:d29f6fbd1181
scmutil: deprecate revpairnodes()
Differential Revision: https://phab.mercurial-scm.org/D3012
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 31 Mar 2018 23:34:15 -0700 |
parents | e9ee540af434 |
children | 14cd5290c4e6 |
line wrap: on
line diff
--- 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()