comparison tests/test-topic.t @ 2860:27ae7afd9a2a

tests: add whitespaces in test-topic.t to make it more readable
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 28 Aug 2017 19:23:16 +0530
parents 38db1466c6fb
children 5c0b6af37b21
comparison
equal deleted inserted replaced
2859:2a228fb6c23e 2860:27ae7afd9a2a
272 o changeset: 4:fb147b0b417c 272 o changeset: 4:fb147b0b417c
273 | user: test 273 | user: test
274 | date: Thu Jan 01 00:00:00 1970 +0000 274 | date: Thu Jan 01 00:00:00 1970 +0000
275 | summary: start on narf 275 | summary: start on narf
276 | 276 |
277
277 $ hg push -f ../pinky -r query 278 $ hg push -f ../pinky -r query
278 pushing to ../pinky 279 pushing to ../pinky
279 searching for changes 280 searching for changes
280 adding changesets 281 adding changesets
281 adding manifests 282 adding manifests
282 adding file changes 283 adding file changes
283 added 1 changesets with 1 changes to 1 files (+1 heads) 284 added 1 changesets with 1 changes to 1 files (+1 heads)
285
284 $ hg -R ../pinky log -Gl 4 286 $ hg -R ../pinky log -Gl 4
285 o changeset: 7:c01515cfc331 287 o changeset: 7:c01515cfc331
286 | tag: tip 288 | tag: tip
287 | topic: query 289 | topic: query
288 | parent: 4:fb147b0b417c 290 | parent: 4:fb147b0b417c
307 o | changeset: 4:fb147b0b417c 309 o | changeset: 4:fb147b0b417c
308 |/ user: test 310 |/ user: test
309 | date: Thu Jan 01 00:00:00 1970 +0000 311 | date: Thu Jan 01 00:00:00 1970 +0000
310 | summary: start on narf 312 | summary: start on narf
311 | 313 |
314
312 $ hg topics 315 $ hg topics
313 * query 316 * query
314 $ cd ../pinky 317 $ cd ../pinky
315 $ hg co query 318 $ hg co query
316 switching to topic query 319 switching to topic query
385 o | changeset: 4:fb147b0b417c 388 o | changeset: 4:fb147b0b417c
386 |/ user: test 389 |/ user: test
387 | date: Thu Jan 01 00:00:00 1970 +0000 390 | date: Thu Jan 01 00:00:00 1970 +0000
388 | summary: start on narf 391 | summary: start on narf
389 | 392 |
393
390 $ cd ../brain 394 $ cd ../brain
391 $ hg topics 395 $ hg topics
392 * query 396 * query
393 $ hg pull ../pinky -r narf 397 $ hg pull ../pinky -r narf
394 pulling from ../pinky 398 pulling from ../pinky
726 | 730 |
727 731
728 $ hg topics --rev '13::19' changewat 732 $ hg topics --rev '13::19' changewat
729 switching to topic changewat 733 switching to topic changewat
730 changed topic on 2 changes 734 changed topic on 2 changes
735
731 $ hg log -Gr 'draft()' 736 $ hg log -Gr 'draft()'
732 @ changeset: 21:56c83be6105f 737 @ changeset: 21:56c83be6105f
733 | tag: tip 738 | tag: tip
734 | topic: changewat 739 | topic: changewat
735 | user: test 740 | user: test
750 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 755 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
751 $ hg up t1 756 $ hg up t1
752 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 757 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
753 $ echo gamma >> gamma 758 $ echo gamma >> gamma
754 $ hg ci -m gamma 759 $ hg ci -m gamma
760
755 $ hg log -Gr 'draft()' 761 $ hg log -Gr 'draft()'
756 @ changeset: 22:0d3d805542b4 762 @ changeset: 22:0d3d805542b4
757 | tag: tip 763 | tag: tip
758 | topic: changewat 764 | topic: changewat
759 | parent: 20:ceba5be9d56f 765 | parent: 20:ceba5be9d56f
772 | parent: 3:a53952faf762 778 | parent: 3:a53952faf762
773 | user: test 779 | user: test
774 | date: Thu Jan 01 00:00:00 1970 +0000 780 | date: Thu Jan 01 00:00:00 1970 +0000
775 | summary: start on fran 781 | summary: start on fran
776 | 782 |
783
777 $ hg topics --rev 't1::' changewut 784 $ hg topics --rev 't1::' changewut
778 switching to topic changewut 785 switching to topic changewut
779 changed topic on 3 changes 786 changed topic on 3 changes
787
780 $ hg log -Gr 'draft()' 788 $ hg log -Gr 'draft()'
781 @ changeset: 25:729ed5717393 789 @ changeset: 25:729ed5717393
782 | tag: tip 790 | tag: tip
783 | topic: changewut 791 | topic: changewut
784 | parent: 23:62e49f09f883 792 | parent: 23:62e49f09f883
809 t3: fran? 817 t3: fran?
810 t1^ start on fran (base) 818 t1^ start on fran (base)
811 t2@ gamma (current) 819 t2@ gamma (current)
812 t1: start on fran 820 t1: start on fran
813 t0^ Add file delta (base) 821 t0^ Add file delta (base)
822
814 $ hg up t0 823 $ hg up t0
815 preserving the current topic 'changewut' 824 preserving the current topic 'changewut'
816 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 825 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
826
817 $ hg topic 827 $ hg topic
818 * changewut 828 * changewut
819 $ hg stack 829 $ hg stack
820 ### topic: changewut (2 heads) 830 ### topic: changewut (2 heads)
821 ### branch: default, 5 behind 831 ### branch: default, 5 behind
862 tag: tip 872 tag: tip
863 user: test 873 user: test
864 date: Thu Jan 01 00:00:00 1970 +0000 874 date: Thu Jan 01 00:00:00 1970 +0000
865 summary: added a 875 summary: added a
866 876
877 Testing the --age flag for `hg topics`
878 ======================================
879
867 $ hg topic topic1970 --rev 0 880 $ hg topic topic1970 --rev 0
868 switching to topic topic1970 881 switching to topic topic1970
869 changed topic on 1 changes 882 changed topic on 1 changes
883
870 $ hg add b 884 $ hg add b
871 $ hg topic topic1990 885 $ hg topic topic1990
872 $ hg ci -m "Added b" --config devel.default-date="631152000 0" 886 $ hg ci -m "Added b" --config devel.default-date="631152000 0"
873 $ hg add c 887 $ hg add c
874 $ hg topic topic2010 888 $ hg topic topic2010
875 $ hg ci -m "Added c" --config devel.default-date="1262304000 0" 889 $ hg ci -m "Added c" --config devel.default-date="1262304000 0"
876 $ hg log 890
877 changeset: 3:9048b194797d 891 $ hg log -G
878 tag: tip 892 @ changeset: 3:9048b194797d
879 topic: topic2010 893 | tag: tip
880 user: test 894 | topic: topic2010
881 date: Fri Jan 01 00:00:00 2010 +0000 895 | user: test
882 summary: Added c 896 | date: Fri Jan 01 00:00:00 2010 +0000
883 897 | summary: Added c
884 changeset: 2:186d493c7f8d 898 |
885 topic: topic1990 899 o changeset: 2:186d493c7f8d
886 user: test 900 | topic: topic1990
887 date: Mon Jan 01 00:00:00 1990 +0000 901 | user: test
888 summary: Added b 902 | date: Mon Jan 01 00:00:00 1990 +0000
889 903 | summary: Added b
890 changeset: 1:e5a30a141954 904 |
891 topic: topic1970 905 o changeset: 1:e5a30a141954
892 parent: -1:000000000000 906 topic: topic1970
893 user: test 907 parent: -1:000000000000
894 date: Thu Jan 01 00:00:00 1970 +0000 908 user: test
895 summary: added a 909 date: Thu Jan 01 00:00:00 1970 +0000
910 summary: added a
896 911
897 $ hg topics 912 $ hg topics
898 topic1970 913 topic1970
899 topic1990 914 topic1990
900 * topic2010 915 * topic2010
916
901 $ hg topics --age 917 $ hg topics --age
902 * topic2010 (2010-01-01) 918 * topic2010 (2010-01-01)
903 topic1990 (1990-01-01) 919 topic1990 (1990-01-01)
904 topic1970 (1970-01-01) 920 topic1970 (1970-01-01)
921
905 $ hg up topic1970 922 $ hg up topic1970
906 switching to topic topic1970 923 switching to topic topic1970
907 0 files updated, 0 files merged, 2 files removed, 0 files unresolved 924 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
925
908 $ hg topics --age 926 $ hg topics --age
909 topic2010 (2010-01-01) 927 topic2010 (2010-01-01)
910 topic1990 (1990-01-01) 928 topic1990 (1990-01-01)
911 * topic1970 (1970-01-01) 929 * topic1970 (1970-01-01)
912 930