Mercurial > hg
comparison tests/test-revset2.t @ 45906:95c4cca641f6
errors: remove trailing "!" from some error messages for consistency
Some types of exceptions had a trailing "!" printed after the message
from the exception itself. I guess some of these errors seem a little
more severe (?), but it seems more likely that the inconsistency was
just an oversight.
Differential Revision: https://phab.mercurial-scm.org/D9378
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 23 Nov 2020 11:18:48 -0800 |
parents | fc4fb2f17dd4 |
children | 7d908ee19b5b |
comparison
equal
deleted
inserted
replaced
45905:e131dbf6ee15 | 45906:95c4cca641f6 |
---|---|
317 9 | 317 9 |
318 | 318 |
319 test unknown revision in `_list` | 319 test unknown revision in `_list` |
320 | 320 |
321 $ log '0|unknown' | 321 $ log '0|unknown' |
322 abort: unknown revision 'unknown'! | 322 abort: unknown revision 'unknown' |
323 [255] | 323 [255] |
324 | 324 |
325 test integer range in `_list` | 325 test integer range in `_list` |
326 | 326 |
327 $ log '-1|-10' | 327 $ log '-1|-10' |
328 9 | 328 9 |
329 0 | 329 0 |
330 | 330 |
331 $ log '-10|-11' | 331 $ log '-10|-11' |
332 abort: unknown revision '-11'! | 332 abort: unknown revision '-11' |
333 [255] | 333 [255] |
334 | 334 |
335 $ log '9|10' | 335 $ log '9|10' |
336 abort: unknown revision '10'! | 336 abort: unknown revision '10' |
337 [255] | 337 [255] |
338 | 338 |
339 test '0000' != '0' in `_list` | 339 test '0000' != '0' in `_list` |
340 | 340 |
341 $ log '0|0000' | 341 $ log '0|0000' |
587 $ hg log 'none()' | 587 $ hg log 'none()' |
588 | 588 |
589 we can use patterns when searching for tags | 589 we can use patterns when searching for tags |
590 | 590 |
591 $ log 'tag("1..*")' | 591 $ log 'tag("1..*")' |
592 abort: tag '1..*' does not exist! | 592 abort: tag '1..*' does not exist |
593 [255] | 593 [255] |
594 $ log 'tag("re:1..*")' | 594 $ log 'tag("re:1..*")' |
595 6 | 595 6 |
596 $ log 'tag("re:[0-9].[0-9]")' | 596 $ log 'tag("re:[0-9].[0-9]")' |
597 6 | 597 6 |
598 $ log 'tag("literal:1.0")' | 598 $ log 'tag("literal:1.0")' |
599 6 | 599 6 |
600 $ log 'tag("re:0..*")' | 600 $ log 'tag("re:0..*")' |
601 | 601 |
602 $ log 'tag(unknown)' | 602 $ log 'tag(unknown)' |
603 abort: tag 'unknown' does not exist! | 603 abort: tag 'unknown' does not exist |
604 [255] | 604 [255] |
605 $ log 'tag("re:unknown")' | 605 $ log 'tag("re:unknown")' |
606 $ log 'present(tag("unknown"))' | 606 $ log 'present(tag("unknown"))' |
607 $ log 'present(tag("re:unknown"))' | 607 $ log 'present(tag("re:unknown"))' |
608 $ log 'branch(unknown)' | 608 $ log 'branch(unknown)' |
609 abort: unknown revision 'unknown'! | 609 abort: unknown revision 'unknown' |
610 [255] | 610 [255] |
611 $ log 'branch("literal:unknown")' | 611 $ log 'branch("literal:unknown")' |
612 abort: branch 'unknown' does not exist! | 612 abort: branch 'unknown' does not exist |
613 [255] | 613 [255] |
614 $ log 'branch("re:unknown")' | 614 $ log 'branch("re:unknown")' |
615 $ log 'present(branch("unknown"))' | 615 $ log 'present(branch("unknown"))' |
616 $ log 'present(branch("re:unknown"))' | 616 $ log 'present(branch("re:unknown"))' |
617 $ log 'user(bob)' | 617 $ log 'user(bob)' |
663 2 | 663 2 |
664 3 | 664 3 |
665 1 | 665 1 |
666 | 666 |
667 $ log 'named("unknown")' | 667 $ log 'named("unknown")' |
668 abort: namespace 'unknown' does not exist! | 668 abort: namespace 'unknown' does not exist |
669 [255] | 669 [255] |
670 $ log 'named("re:unknown")' | 670 $ log 'named("re:unknown")' |
671 $ log 'present(named("unknown"))' | 671 $ log 'present(named("unknown"))' |
672 $ log 'present(named("re:unknown"))' | 672 $ log 'present(named("re:unknown"))' |
673 | 673 |
756 $ log 'tip^foo' | 756 $ log 'tip^foo' |
757 hg: parse error: ^ expects a number 0, 1, or 2 | 757 hg: parse error: ^ expects a number 0, 1, or 2 |
758 [10] | 758 [10] |
759 | 759 |
760 $ log 'branchpoint()~-1' | 760 $ log 'branchpoint()~-1' |
761 abort: revision in set has more than one child! | 761 abort: revision in set has more than one child |
762 [255] | 762 [255] |
763 | 763 |
764 Bogus function gets suggestions | 764 Bogus function gets suggestions |
765 $ log 'add()' | 765 $ log 'add()' |
766 hg: parse error: unknown identifier: add | 766 hg: parse error: unknown identifier: add |
867 | 867 |
868 $ HGPLAIN=1 | 868 $ HGPLAIN=1 |
869 $ export HGPLAIN | 869 $ export HGPLAIN |
870 $ try m | 870 $ try m |
871 (symbol 'm') | 871 (symbol 'm') |
872 abort: unknown revision 'm'! | 872 abort: unknown revision 'm' |
873 [255] | 873 [255] |
874 | 874 |
875 $ HGPLAINEXCEPT=revsetalias | 875 $ HGPLAINEXCEPT=revsetalias |
876 $ export HGPLAINEXCEPT | 876 $ export HGPLAINEXCEPT |
877 $ try m | 877 $ try m |
1058 (func | 1058 (func |
1059 (symbol 'descendants') | 1059 (symbol 'descendants') |
1060 (func | 1060 (func |
1061 (symbol 'max') | 1061 (symbol 'max') |
1062 (string '$1'))) | 1062 (string '$1'))) |
1063 abort: unknown revision '$1'! | 1063 abort: unknown revision '$1' |
1064 [255] | 1064 [255] |
1065 | 1065 |
1066 test scope of alias expansion: 'universe' is expanded prior to 'shadowall(0)', | 1066 test scope of alias expansion: 'universe' is expanded prior to 'shadowall(0)', |
1067 but 'all()' should never be substituted to '0()'. | 1067 but 'all()' should never be substituted to '0()'. |
1068 | 1068 |