##// END OF EJS Templates
test-obsolete: include <> in user field to check JSON escapes...
Yuya Nishihara -
r32741:8f83f924 default
parent child Browse files
Show More
@@ -599,7 +599,8 b' Do not warn about new head when the new '
599 $ hg up -q 'desc(n3w_3_c)'
599 $ hg up -q 'desc(n3w_3_c)'
600 $ mkcommit obsolete_e
600 $ mkcommit obsolete_e
601 created new head
601 created new head
602 $ hg debugobsolete `getid 'original_e'` `getid 'obsolete_e'`
602 $ hg debugobsolete `getid 'original_e'` `getid 'obsolete_e'` \
603 > -u 'test <test@example.net>'
603 $ hg outgoing ../tmpf # parasite hg outgoing testin
604 $ hg outgoing ../tmpf # parasite hg outgoing testin
604 comparing with ../tmpf
605 comparing with ../tmpf
605 searching for changes
606 searching for changes
@@ -647,7 +648,7 b' List of all markers'
647 ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'}
648 ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'}
648 cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'}
649 cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'}
649 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
650 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
650 cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test'} (glob)
651 cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test <test@example.net>'} (glob)
651
652
652 List of changesets with no chain
653 List of changesets with no chain
653
654
@@ -656,7 +657,7 b' List of changesets with no chain'
656 List of changesets that are included on marker chain
657 List of changesets that are included on marker chain
657
658
658 $ hg debugobsolete --hidden --rev 6
659 $ hg debugobsolete --hidden --rev 6
659 cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test'} (glob)
660 cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test <test@example.net>'} (glob)
660
661
661 List of changesets with a longer chain, (including a pruned children)
662 List of changesets with a longer chain, (including a pruned children)
662
663
@@ -678,7 +679,7 b' List of both'
678 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'}
679 5601fb93a350734d935195fee37f4054c529ff39 6f96419950729f3671185b847352890f074f7557 1 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'}
679 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
680 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
680 ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'}
681 ca819180edb99ed25ceafb3e9584ac287e240b00 1337133713371337133713371337133713371337 0 (Thu Jan 01 00:22:18 1970 +0000) {'user': 'test'}
681 cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test'} (glob)
682 cda648ca50f50482b7055c0b0c4c117bba6733d9 3de5eca88c00aa039da7399a220f4a5221faa585 0 (*) {'user': 'test <test@example.net>'} (glob)
682 cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'}
683 cdbce2fbb16313928851e97e0d85413f3f7eb77f ca819180edb99ed25ceafb3e9584ac287e240b00 0 (Thu Jan 01 00:22:17 1970 +0000) {'user': 'test'}
683
684
684 List of all markers in JSON
685 List of all markers in JSON
@@ -738,7 +739,7 b' List of all markers in JSON'
738 {
739 {
739 "date": *, (glob)
740 "date": *, (glob)
740 "flag": 0,
741 "flag": 0,
741 "metadata": {"user": "test"},
742 "metadata": {"user": "test \u003ctest@example.net\u003e"},
742 "precnode": "cda648ca50f50482b7055c0b0c4c117bba6733d9",
743 "precnode": "cda648ca50f50482b7055c0b0c4c117bba6733d9",
743 "succnodes": ["3de5eca88c00aa039da7399a220f4a5221faa585"]
744 "succnodes": ["3de5eca88c00aa039da7399a220f4a5221faa585"]
744 }
745 }
@@ -749,11 +750,11 b' Template keywords'
749 $ hg debugobsolete -r6 -T '{succnodes % "{node|short}"} {date|shortdate}\n'
750 $ hg debugobsolete -r6 -T '{succnodes % "{node|short}"} {date|shortdate}\n'
750 3de5eca88c00 ????-??-?? (glob)
751 3de5eca88c00 ????-??-?? (glob)
751 $ hg debugobsolete -r6 -T '{join(metadata % "{key}={value}", " ")}\n'
752 $ hg debugobsolete -r6 -T '{join(metadata % "{key}={value}", " ")}\n'
752 user=test
753 user=test <test@example.net>
753 $ hg debugobsolete -r6 -T '{metadata}\n'
754 $ hg debugobsolete -r6 -T '{metadata}\n'
754 'user': 'test'
755 'user': 'test <test@example.net>'
755 $ hg debugobsolete -r6 -T '{flag} {get(metadata, "user")}\n'
756 $ hg debugobsolete -r6 -T '{flag} {get(metadata, "user")}\n'
756 0 test
757 0 test <test@example.net>
757
758
758 Test the debug output for exchange
759 Test the debug output for exchange
759 ----------------------------------
760 ----------------------------------
General Comments 0
You need to be logged in to leave comments. Login now