diff hgext/mq.py @ 31024:0b8356705de6

revset: split language services to revsetlang module (API) New revsetlang module hosts parser, tokenizer, and miscellaneous functions working on parsed tree. It does not include functions for evaluation such as getset() and match(). 2288 mercurial/revset.py 684 mercurial/revsetlang.py 2972 total get*() functions are aliased since they are common in revset.py.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 19 Feb 2017 18:19:33 +0900
parents aea06029919e
children 861b070d92da
line wrap: on
line diff
--- a/hgext/mq.py	Sun Feb 19 18:16:09 2017 +0900
+++ b/hgext/mq.py	Sun Feb 19 18:19:33 2017 +0900
@@ -89,7 +89,7 @@
     phases,
     pycompat,
     registrar,
-    revset,
+    revsetlang,
     scmutil,
     smartset,
     subrepo,
@@ -3568,7 +3568,7 @@
 def revsetmq(repo, subset, x):
     """Changesets managed by MQ.
     """
-    revset.getargs(x, 0, 0, _("mq takes no arguments"))
+    revsetlang.getargs(x, 0, 0, _("mq takes no arguments"))
     applied = set([repo[r.node].rev() for r in repo.mq.applied])
     return smartset.baseset([r for r in subset if r in applied])