comparison tests/test-revset.t @ 29924:45bf56a89197

debugrevspec: add option to verify optimized result This provides a convenient way to diff "hg debugrevspec" outputs generated with/without --no-optimized option.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 Aug 2016 13:16:21 +0900
parents 429fd2747d9a
children b3845cab4ddc
comparison
equal deleted inserted replaced
29923:429fd2747d9a 29924:45bf56a89197
552 552
553 $ hg debugrevspec -p all --optimize '0' 553 $ hg debugrevspec -p all --optimize '0'
554 abort: cannot use --optimize with --show-stage 554 abort: cannot use --optimize with --show-stage
555 [255] 555 [255]
556 556
557 verify optimized tree:
558
559 $ hg debugrevspec --verify '0|1'
560
561 $ hg debugrevspec --verify -v -p analyzed -p optimized 'r3232() & 2'
562 * analyzed:
563 (and
564 (func
565 ('symbol', 'r3232')
566 None)
567 ('symbol', '2'))
568 * optimized:
569 (and
570 ('symbol', '2')
571 (func
572 ('symbol', 'r3232')
573 None))
574 * analyzed set:
575 <baseset [2]>
576 * optimized set:
577 <baseset [2, 2]>
578 --- analyzed
579 +++ optimized
580 2
581 +2
582 [1]
583
584 $ hg debugrevspec --no-optimized --verify-optimized '0'
585 abort: cannot use --verify-optimized with --no-optimized
586 [255]
587
557 Test that symbols only get parsed as functions if there's an opening 588 Test that symbols only get parsed as functions if there's an opening
558 parenthesis. 589 parenthesis.
559 590
560 $ hg book only -r 9 591 $ hg book only -r 9
561 $ log 'only(only)' # Outer "only" is a function, inner "only" is the bookmark 592 $ log 'only(only)' # Outer "only" is a function, inner "only" is the bookmark