diff mercurial/revset.py @ 14900:fc3d6f300d7d

revset: allow bypassing alias expansion For internal usage of revset queries, we don't want aliases breaking things.
author Matt Mackall <mpm@selenic.com>
date Thu, 21 Jul 2011 14:04:57 -0500
parents f96c354493d7
children a773119f30ba
line wrap: on
line diff
--- a/mercurial/revset.py	Tue Jul 19 17:51:45 2011 -0500
+++ b/mercurial/revset.py	Thu Jul 21 14:04:57 2011 -0500
@@ -1019,7 +1019,8 @@
     tree, pos = parse(spec)
     if (pos != len(spec)):
         raise error.ParseError(_("invalid token"), pos)
-    tree = findaliases(ui, tree)
+    if ui:
+        tree = findaliases(ui, tree)
     weight, tree = optimize(tree, True)
     def mfunc(repo, subset):
         return getset(repo, subset, tree)