Show More
@@ -3508,7 +3508,7 b' def debugrevspec(ui, repo, expr, **opts)' | |||
|
3508 | 3508 | if ui.verbose: |
|
3509 | 3509 | tree = revset.parse(expr, lookup=repo.__contains__) |
|
3510 | 3510 | ui.note(revset.prettyformat(tree), "\n") |
|
3511 |
newtree = revset. |
|
|
3511 | newtree = revset.expandaliases(ui, tree) | |
|
3512 | 3512 | if newtree != tree: |
|
3513 | 3513 | ui.note("* expanded:\n", revset.prettyformat(newtree), "\n") |
|
3514 | 3514 | tree = newtree |
@@ -239,7 +239,8 b' class alias(object):' | |||
|
239 | 239 | self.error = err |
|
240 | 240 | self.replacement = replacement |
|
241 | 241 | # whether own `error` information is already shown or not. |
|
242 |
# this avoids showing same warning multiple times at each |
|
|
242 | # this avoids showing same warning multiple times at each | |
|
243 | # `expandaliases`. | |
|
243 | 244 | self.warned = False |
|
244 | 245 | |
|
245 | 246 | class basealiasrules(object): |
@@ -2256,7 +2256,7 b' class _aliasrules(parser.basealiasrules)' | |||
|
2256 | 2256 | _parse = staticmethod(_parsealias) |
|
2257 | 2257 | _getlist = staticmethod(getlist) |
|
2258 | 2258 | |
|
2259 |
def |
|
|
2259 | def expandaliases(ui, tree, showwarning=None): | |
|
2260 | 2260 | aliases = _aliasrules.buildmap(ui.configitems('revsetalias')) |
|
2261 | 2261 | tree = _aliasrules.expand(aliases, tree) |
|
2262 | 2262 | if showwarning: |
@@ -2328,7 +2328,7 b' def matchany(ui, specs, repo=None):' | |||
|
2328 | 2328 | |
|
2329 | 2329 | def _makematcher(ui, tree, repo): |
|
2330 | 2330 | if ui: |
|
2331 |
tree = |
|
|
2331 | tree = expandaliases(ui, tree, showwarning=ui.warn) | |
|
2332 | 2332 | tree = foldconcat(tree) |
|
2333 | 2333 | weight, tree = optimize(tree, True) |
|
2334 | 2334 | posttreebuilthook(tree, repo) |
General Comments 0
You need to be logged in to leave comments.
Login now