Mercurial > hg
diff mercurial/commands.py @ 29923:429fd2747d9a
debugrevspec: add option to skip optimize() and evaluate unoptimized tree
This will help debugging optimizer bugs.
Maybe '--no-optimized' can be changed to '--optimized' (default: True) when
flags series landed.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Aug 2016 12:40:02 +0900 |
parents | ae933e3e2226 |
children | 45bf56a89197 |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Sep 08 22:44:10 2016 +0900 +++ b/mercurial/commands.py Sun Aug 21 12:40:02 2016 +0900 @@ -3515,6 +3515,7 @@ _('print parsed tree after optimizing (DEPRECATED)')), ('p', 'show-stage', [], _('print parsed tree at the given stage'), _('NAME')), + ('', 'no-optimized', False, _('evaluate tree without optimization')), ], ('REVSPEC')) def debugrevspec(ui, repo, expr, **opts): @@ -3530,6 +3531,8 @@ ('analyzed', revset.analyze), ('optimized', revset.optimize), ] + if opts['no_optimized']: + stages = stages[:-1] stagenames = set(n for n, f in stages) showalways = set()