Mercurial > hg
diff mercurial/commands.py @ 28629:d6f8a1535224
debugrevspec: show expanded/concatenated states before printing trees
The debugrevspec command prints at most 4 parsed trees. It wasn't easy to
tell which tree belongs to which state.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 26 Mar 2016 19:01:12 +0900 |
parents | 6433da9c96a9 |
children | 3ceac01bc29f |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Mar 26 18:01:04 2016 +0900 +++ b/mercurial/commands.py Sat Mar 26 19:01:12 2016 +0900 @@ -3463,11 +3463,11 @@ ui.note(revset.prettyformat(tree), "\n") newtree = revset.findaliases(ui, tree) if newtree != tree: - ui.note(revset.prettyformat(newtree), "\n") + ui.note("* expanded:\n", revset.prettyformat(newtree), "\n") tree = newtree newtree = revset.foldconcat(tree) if newtree != tree: - ui.note(revset.prettyformat(newtree), "\n") + ui.note("* concatenated:\n", revset.prettyformat(newtree), "\n") if opts["optimize"]: weight, optimizedtree = revset.optimize(newtree, True) ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")