Show More
@@ -3515,6 +3515,7 b' def debugrevlog(ui, repo, file_=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): | |
@@ -3530,6 +3531,8 b' def debugrevspec(ui, repo, expr, **opts)' | |||||
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() |
@@ -269,7 +269,7 b' Show all commands + options' | |||||
269 | debugrebuildfncache: |
|
269 | debugrebuildfncache: | |
270 | debugrename: rev |
|
270 | debugrename: rev | |
271 | debugrevlog: changelog, manifest, dir, dump |
|
271 | debugrevlog: changelog, manifest, dir, dump | |
272 | debugrevspec: optimize, show-stage |
|
272 | debugrevspec: optimize, show-stage, no-optimized | |
273 | debugsetparents: |
|
273 | debugsetparents: | |
274 | debugsub: rev |
|
274 | debugsub: rev | |
275 | debugsuccessorssets: |
|
275 | debugsuccessorssets: |
@@ -508,6 +508,21 b' parsed tree at stages:' | |||||
508 | hg: parse error: missing argument |
|
508 | hg: parse error: missing argument | |
509 | [255] |
|
509 | [255] | |
510 |
|
510 | |||
|
511 | $ hg debugrevspec --no-optimized -p all '()' | |||
|
512 | * parsed: | |||
|
513 | (group | |||
|
514 | None) | |||
|
515 | * expanded: | |||
|
516 | (group | |||
|
517 | None) | |||
|
518 | * concatenated: | |||
|
519 | (group | |||
|
520 | None) | |||
|
521 | * analyzed: | |||
|
522 | None | |||
|
523 | hg: parse error: missing argument | |||
|
524 | [255] | |||
|
525 | ||||
511 | $ hg debugrevspec -p parsed -p analyzed -p optimized '(0|1)-1' |
|
526 | $ hg debugrevspec -p parsed -p analyzed -p optimized '(0|1)-1' | |
512 | * parsed: |
|
527 | * parsed: | |
513 | (minus |
|
528 | (minus | |
@@ -2058,6 +2073,32 b' test optimization of trivial `or` operat' | |||||
2058 | 5 |
|
2073 | 5 | |
2059 | 6 |
|
2074 | 6 | |
2060 |
|
2075 | |||
|
2076 | unoptimized `or` looks like this | |||
|
2077 | ||||
|
2078 | $ try --no-optimized -p analyzed '0|1|2|3|4' | |||
|
2079 | * analyzed: | |||
|
2080 | (or | |||
|
2081 | ('symbol', '0') | |||
|
2082 | ('symbol', '1') | |||
|
2083 | ('symbol', '2') | |||
|
2084 | ('symbol', '3') | |||
|
2085 | ('symbol', '4')) | |||
|
2086 | * set: | |||
|
2087 | <addset | |||
|
2088 | <addset | |||
|
2089 | <baseset [0]>, | |||
|
2090 | <baseset [1]>>, | |||
|
2091 | <addset | |||
|
2092 | <baseset [2]>, | |||
|
2093 | <addset | |||
|
2094 | <baseset [3]>, | |||
|
2095 | <baseset [4]>>>> | |||
|
2096 | 0 | |||
|
2097 | 1 | |||
|
2098 | 2 | |||
|
2099 | 3 | |||
|
2100 | 4 | |||
|
2101 | ||||
2061 | test that `_list` should be narrowed by provided `subset` |
|
2102 | test that `_list` should be narrowed by provided `subset` | |
2062 |
|
2103 | |||
2063 | $ log '0:2 and (null|1|2|3)' |
|
2104 | $ log '0:2 and (null|1|2|3)' |
General Comments 0
You need to be logged in to leave comments.
Login now