diff mercurial/debugcommands.py @ 37350:e32dfff71529

revset: use revsymbol() for checking if a symbol is valid Differential Revision: https://phab.mercurial-scm.org/D3078
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 01 Apr 2018 22:48:32 -0700
parents a67fd1fe5109
children 9966f44ecab4
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Apr 03 15:08:14 2018 -0700
+++ b/mercurial/debugcommands.py	Sun Apr 01 22:48:32 2018 -0700
@@ -2210,7 +2210,7 @@
 
     treebystage = {}
     printedtree = None
-    tree = revsetlang.parse(expr, lookup=repo.__contains__)
+    tree = revsetlang.parse(expr, lookup=revset.lookupfn(repo))
     for n, f in stages:
         treebystage[n] = tree = f(tree)
         if n in showalways or (n in showchanged and tree != printedtree):