--- a/mercurial/scmutil.py Sun Feb 19 18:16:09 2017 +0900
+++ b/mercurial/scmutil.py Sun Feb 19 18:19:33 2017 +0900
@@ -30,6 +30,7 @@
phases,
pycompat,
revset,
+ revsetlang,
similar,
util,
)
@@ -890,7 +891,7 @@
return repo[l.last()]
def _pairspec(revspec):
- tree = revset.parse(revspec)
+ tree = revsetlang.parse(revspec)
return tree and tree[0] in ('range', 'rangepre', 'rangepost', 'rangeall')
def revpair(repo, revs):
@@ -936,7 +937,7 @@
revision numbers.
It is assumed the revsets are already formatted. If you have arguments
- that need to be expanded in the revset, call ``revset.formatspec()``
+ that need to be expanded in the revset, call ``revsetlang.formatspec()``
and pass the result as an element of ``specs``.
Specifying a single revset is allowed.
@@ -947,7 +948,7 @@
allspecs = []
for spec in specs:
if isinstance(spec, int):
- spec = revset.formatspec('rev(%d)', spec)
+ spec = revsetlang.formatspec('rev(%d)', spec)
allspecs.append(spec)
m = revset.matchany(repo.ui, allspecs, repo)
return m(repo)