Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
37349:36b2a304216c | 37350:e32dfff71529 |
---|---|
2208 raise error.Abort(_('invalid stage name: %s') % n) | 2208 raise error.Abort(_('invalid stage name: %s') % n) |
2209 showalways.update(opts['show_stage']) | 2209 showalways.update(opts['show_stage']) |
2210 | 2210 |
2211 treebystage = {} | 2211 treebystage = {} |
2212 printedtree = None | 2212 printedtree = None |
2213 tree = revsetlang.parse(expr, lookup=repo.__contains__) | 2213 tree = revsetlang.parse(expr, lookup=revset.lookupfn(repo)) |
2214 for n, f in stages: | 2214 for n, f in stages: |
2215 treebystage[n] = tree = f(tree) | 2215 treebystage[n] = tree = f(tree) |
2216 if n in showalways or (n in showchanged and tree != printedtree): | 2216 if n in showalways or (n in showchanged and tree != printedtree): |
2217 if opts['show_stage'] or n != 'parsed': | 2217 if opts['show_stage'] or n != 'parsed': |
2218 ui.write(("* %s:\n") % n) | 2218 ui.write(("* %s:\n") % n) |