3513 @command('debugrevspec', |
3513 @command('debugrevspec', |
3514 [('', 'optimize', None, |
3514 [('', 'optimize', None, |
3515 _('print parsed tree after optimizing (DEPRECATED)')), |
3515 _('print parsed tree after optimizing (DEPRECATED)')), |
3516 ('p', 'show-stage', [], |
3516 ('p', 'show-stage', [], |
3517 _('print parsed tree at the given stage'), _('NAME')), |
3517 _('print parsed tree at the given stage'), _('NAME')), |
|
3518 ('', 'no-optimized', False, _('evaluate tree without optimization')), |
3518 ], |
3519 ], |
3519 ('REVSPEC')) |
3520 ('REVSPEC')) |
3520 def debugrevspec(ui, repo, expr, **opts): |
3521 def debugrevspec(ui, repo, expr, **opts): |
3521 """parse and apply a revision specification |
3522 """parse and apply a revision specification |
3522 |
3523 |
3528 ('expanded', lambda tree: revset.expandaliases(ui, tree)), |
3529 ('expanded', lambda tree: revset.expandaliases(ui, tree)), |
3529 ('concatenated', revset.foldconcat), |
3530 ('concatenated', revset.foldconcat), |
3530 ('analyzed', revset.analyze), |
3531 ('analyzed', revset.analyze), |
3531 ('optimized', revset.optimize), |
3532 ('optimized', revset.optimize), |
3532 ] |
3533 ] |
|
3534 if opts['no_optimized']: |
|
3535 stages = stages[:-1] |
3533 stagenames = set(n for n, f in stages) |
3536 stagenames = set(n for n, f in stages) |
3534 |
3537 |
3535 showalways = set() |
3538 showalways = set() |
3536 showchanged = set() |
3539 showchanged = set() |
3537 if ui.verbose and not opts['show_stage']: |
3540 if ui.verbose and not opts['show_stage']: |