Mercurial > evolve
comparison tests/test-topic.t @ 6073:6b67f26f4667 mercurial-4.8
test-compat: merge mercurial-4.9 into mercurial-4.8
# no-check-commit
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 12 Oct 2021 13:46:30 +0300 |
parents | 2da0e17ca1c0 5c921c26dc40 |
children | 55e9987b8384 8d04f00c2fbf |
comparison
equal
deleted
inserted
replaced
6072:5c921c26dc40 | 6073:6b67f26f4667 |
---|---|
919 1: featureA | 919 1: featureA |
920 2: featureA | 920 2: featureA |
921 3: featureA | 921 3: featureA |
922 4: | 922 4: |
923 | 923 |
924 topic subscript relation | |
925 | |
926 $ tlog 'featureA' | |
927 3: featureA | |
928 $ tlog 'featureA#topic[0]' | |
929 3: featureA | |
930 | |
931 $ tlog '2#t[-2]' | |
932 $ tlog '2#t[-1]' | |
933 1: featureA | |
934 $ tlog '2#t[0]' | |
935 2: featureA | |
936 $ tlog '2#t[1]' | |
937 3: featureA | |
938 $ tlog '2#t[2]' | |
939 | |
940 stack subscript relation | |
941 | |
942 $ hg stack | |
943 ### target: default (branch) | |
944 s2@ 4 (current) | |
945 ^ 3 | |
946 s1: 0 | |
947 | |
948 $ tlog 'tip#stack[0]' | |
949 $ tlog 'tip#stack[1]' | |
950 0: | |
951 $ tlog 'tip#stack[2]' | |
952 4: | |
953 $ tlog 'tip#stack[-1]' | |
954 4: | |
955 $ tlog 'tip#stack[-2]' | |
956 0: | |
957 | |
958 $ hg stack featureA | |
959 ### topic: featureA | |
960 ### target: default (branch), 3 behind | |
961 s3: 3 | |
962 s2: 2 | |
963 s1: 1 | |
964 s0^ 0 (base) | |
965 | |
966 $ tlog 'featureA#s[0]' | |
967 0: | |
968 $ tlog 'featureA#s[1] and featureA#s[-3]' | |
969 1: featureA | |
970 $ tlog 'featureA#s[2] and featureA#s[-2]' | |
971 2: featureA | |
972 $ tlog 'featureA#s[3] and featureA#s[-1]' | |
973 3: featureA | |
974 $ tlog 'featureA#s[-4]' | |
975 | |
976 $ tlog 'all()#s[-1]' | |
977 3: featureA | |
978 4: | |
979 $ tlog 'all()#s[0]' | |
980 0: | |
981 $ tlog 'all()#s[1]' | |
982 0: | |
983 1: featureA | |
984 $ tlog 'all()#s[9999]' | |
985 $ tlog 'all()#s[-9999]' | |
986 | |
987 $ hg topic featureB | |
988 marked working directory as topic: featureB | |
989 $ hg stack | |
990 ### topic: featureB | |
991 ### target: default (branch) | |
992 (stack is empty) | |
993 s0^ 4 (base current) | |
994 $ tlog 'wdir()#s[0]' | |
995 4: | |
996 | |
997 $ cd .. | 924 $ cd .. |
998 | 925 |
999 Testing the new config knob to forbid untopiced commit | 926 Testing the new config knob to forbid untopiced commit |
1000 ====================================================== | 927 ====================================================== |
1001 | 928 |