Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 28898:8d398155bfda
revset: rename findaliases() to expandaliases()
This function returns a full tree of alias expansion applied, which sounds
different from what "findaliases" would do.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 29 Feb 2016 22:58:15 +0900 |
parents | 445a25bb70be |
children | eb017d52899d |
comparison
equal
deleted
inserted
replaced
28897:c1f254138f44 | 28898:8d398155bfda |
---|---|
3506 expansion. | 3506 expansion. |
3507 """ | 3507 """ |
3508 if ui.verbose: | 3508 if ui.verbose: |
3509 tree = revset.parse(expr, lookup=repo.__contains__) | 3509 tree = revset.parse(expr, lookup=repo.__contains__) |
3510 ui.note(revset.prettyformat(tree), "\n") | 3510 ui.note(revset.prettyformat(tree), "\n") |
3511 newtree = revset.findaliases(ui, tree) | 3511 newtree = revset.expandaliases(ui, tree) |
3512 if newtree != tree: | 3512 if newtree != tree: |
3513 ui.note("* expanded:\n", revset.prettyformat(newtree), "\n") | 3513 ui.note("* expanded:\n", revset.prettyformat(newtree), "\n") |
3514 tree = newtree | 3514 tree = newtree |
3515 newtree = revset.foldconcat(tree) | 3515 newtree = revset.foldconcat(tree) |
3516 if newtree != tree: | 3516 if newtree != tree: |