Mercurial > evolve
comparison tests/test-topic.t @ 5765:98e87c181e0f mercurial-4.8
test-compat: merge mercurial-4.9 into mercurial-4.8
# no-check-commit
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 31 Jan 2021 16:06:16 +0800 |
parents | f0ce31fcb630 785b5be835ee |
children | 82da27321e91 1f301a3062f5 |
comparison
equal
deleted
inserted
replaced
5764:785b5be835ee | 5765:98e87c181e0f |
---|---|
924 1: featureA | 924 1: featureA |
925 2: featureA | 925 2: featureA |
926 3: featureA | 926 3: featureA |
927 4: | 927 4: |
928 | 928 |
929 topic subscript relation | |
930 | |
931 $ tlog 'featureA' | |
932 3: featureA | |
933 $ tlog 'featureA#topic[0]' | |
934 3: featureA | |
935 | |
936 $ tlog '2#t[-2]' | |
937 $ tlog '2#t[-1]' | |
938 1: featureA | |
939 $ tlog '2#t[0]' | |
940 2: featureA | |
941 $ tlog '2#t[1]' | |
942 3: featureA | |
943 $ tlog '2#t[2]' | |
944 | |
945 stack subscript relation | |
946 | |
947 $ hg stack | |
948 ### target: default (branch) | |
949 s2@ 4 (current) | |
950 ^ 3 | |
951 s1: 0 | |
952 | |
953 $ tlog 'tip#stack[0]' | |
954 $ tlog 'tip#stack[1]' | |
955 0: | |
956 $ tlog 'tip#stack[2]' | |
957 4: | |
958 $ tlog 'tip#stack[-1]' | |
959 4: | |
960 $ tlog 'tip#stack[-2]' | |
961 0: | |
962 | |
963 $ hg stack featureA | |
964 ### topic: featureA | |
965 ### target: default (branch), 3 behind | |
966 s3: 3 | |
967 s2: 2 | |
968 s1: 1 | |
969 s0^ 0 (base) | |
970 | |
971 $ tlog 'featureA#s[0]' | |
972 0: | |
973 $ tlog 'featureA#s[1] and featureA#s[-3]' | |
974 1: featureA | |
975 $ tlog 'featureA#s[2] and featureA#s[-2]' | |
976 2: featureA | |
977 $ tlog 'featureA#s[3] and featureA#s[-1]' | |
978 3: featureA | |
979 $ tlog 'featureA#s[-4]' | |
980 | |
981 $ tlog 'all()#s[-1]' | |
982 3: featureA | |
983 4: | |
984 $ tlog 'all()#s[0]' | |
985 0: | |
986 $ tlog 'all()#s[1]' | |
987 0: | |
988 1: featureA | |
989 $ tlog 'all()#s[9999]' | |
990 $ tlog 'all()#s[-9999]' | |
991 | |
992 $ hg topic featureB | |
993 marked working directory as topic: featureB | |
994 $ hg stack | |
995 ### topic: featureB | |
996 ### target: default (branch) | |
997 (stack is empty) | |
998 s0^ 4 (base current) | |
999 $ tlog 'wdir()#s[0]' | |
1000 4: | |
1001 | |
1002 $ cd .. | 929 $ cd .. |
1003 | 930 |
1004 Testing the new config knob to forbid untopiced commit | 931 Testing the new config knob to forbid untopiced commit |
1005 ====================================================== | 932 ====================================================== |
1006 | 933 |