mercurial/commands.py
changeset 25901 0203c50a589f
parent 25796 4eb8d8a44bf1
child 25903 9bbab9decd71
--- a/mercurial/commands.py	Sun Aug 02 19:18:35 2015 +0800
+++ b/mercurial/commands.py	Sat Jul 18 23:02:18 2015 +0900
@@ -2933,7 +2933,7 @@
     expansion.
     """
     if ui.verbose:
-        tree = revset.parse(expr)
+        tree = revset.parse(expr, lookup=repo.__contains__)
         ui.note(revset.prettyformat(tree), "\n")
         newtree = revset.findaliases(ui, tree)
         if newtree != tree:
@@ -2945,7 +2945,7 @@
         if opts["optimize"]:
             weight, optimizedtree = revset.optimize(newtree, True)
             ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")
-    func = revset.match(ui, expr)
+    func = revset.match(ui, expr, repo)
     revs = func(repo)
     if ui.verbose:
         ui.note("* set:\n", revset.prettyformatset(revs), "\n")