Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 29909:371c2a39eead
revset: make analyze() a separate step from optimize()
This will allow us to evaluate unoptimized tree and compare the result with
optimized one.
The private _analyze() function isn't renamed since I'll add more parameters
to it.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Aug 2016 11:29:57 +0900 |
parents | 4d1e6f91f1c7 |
children | b3ec902b2f3c |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Aug 07 14:35:03 2016 +0900 +++ b/mercurial/commands.py Sun Aug 21 11:29:57 2016 +0900 @@ -3530,6 +3530,7 @@ if newtree != tree: ui.note(("* concatenated:\n"), revset.prettyformat(newtree), "\n") if opts["optimize"]: + newtree = revset.analyze(newtree) optimizedtree = revset.optimize(newtree) ui.note(("* optimized:\n"), revset.prettyformat(optimizedtree), "\n")