Show More
@@ -1,570 +1,580 b'' | |||||
1 | ================================================== |
|
1 | ================================================== | |
2 | Test obsmarkers interaction with bundle and strip |
|
2 | Test obsmarkers interaction with bundle and strip | |
3 | ================================================== |
|
3 | ================================================== | |
4 |
|
4 | |||
5 | The file currently only contains test for bundle. |
|
5 | The file currently only contains test for bundle. | |
6 | Testing of strip will happen some time soon (tm). |
|
6 | Testing of strip will happen some time soon (tm). | |
7 |
|
7 | |||
8 | Setup a repository with various case |
|
8 | Setup a repository with various case | |
9 | ==================================== |
|
9 | ==================================== | |
10 |
|
10 | |||
11 | Config setup |
|
11 | Config setup | |
12 | ------------ |
|
12 | ------------ | |
13 |
|
13 | |||
14 | $ cat >> $HGRCPATH <<EOF |
|
14 | $ cat >> $HGRCPATH <<EOF | |
15 | > [ui] |
|
15 | > [ui] | |
16 | > # simpler log output |
|
16 | > # simpler log output | |
17 | > logtemplate = "{node|short}: {desc}\n" |
|
17 | > logtemplate = "{node|short}: {desc}\n" | |
18 | > |
|
18 | > | |
19 | > [experimental] |
|
19 | > [experimental] | |
20 | > # enable evolution |
|
20 | > # enable evolution | |
21 | > evolution = all |
|
21 | > evolution = all | |
22 | > |
|
22 | > | |
23 | > # include obsmarkers in bundle |
|
23 | > # include obsmarkers in bundle | |
24 | > evolution.bundle-obsmarker = yes |
|
24 | > evolution.bundle-obsmarker = yes | |
25 | > |
|
25 | > | |
26 | > [extensions] |
|
26 | > [extensions] | |
27 | > # needed for some tests |
|
27 | > # needed for some tests | |
28 | > strip = |
|
28 | > strip = | |
29 | > [defaults] |
|
29 | > [defaults] | |
30 | > # we'll query many hidden changeset |
|
30 | > # we'll query many hidden changeset | |
31 | > debugobsolete = --hidden |
|
31 | > debugobsolete = --hidden | |
32 | > EOF |
|
32 | > EOF | |
33 |
|
33 | |||
34 | $ mkcommit() { |
|
34 | $ mkcommit() { | |
35 | > echo "$1" > "$1" |
|
35 | > echo "$1" > "$1" | |
36 | > hg add "$1" |
|
36 | > hg add "$1" | |
37 | > hg ci -m "$1" |
|
37 | > hg ci -m "$1" | |
38 | > } |
|
38 | > } | |
39 |
|
39 | |||
40 | $ getid() { |
|
40 | $ getid() { | |
41 | > hg log --hidden --template '{node}\n' --rev "$1" |
|
41 | > hg log --hidden --template '{node}\n' --rev "$1" | |
42 | > } |
|
42 | > } | |
43 |
|
43 | |||
44 | $ mktestrepo () { |
|
44 | $ mktestrepo () { | |
45 | > [ -n "$1" ] || exit 1 |
|
45 | > [ -n "$1" ] || exit 1 | |
46 | > cd $TESTTMP |
|
46 | > cd $TESTTMP | |
47 | > hg init $1 |
|
47 | > hg init $1 | |
48 | > cd $1 |
|
48 | > cd $1 | |
49 | > mkcommit ROOT |
|
49 | > mkcommit ROOT | |
50 | > } |
|
50 | > } | |
51 |
|
51 | |||
52 | Function to compare the expected bundled obsmarkers with the actually bundled |
|
52 | Function to compare the expected bundled obsmarkers with the actually bundled | |
53 | obsmarkers. |
|
53 | obsmarkers. | |
54 |
|
54 | |||
55 | $ testrevs () { |
|
55 | $ testrevs () { | |
56 | > revs="$1" |
|
56 | > revs="$1" | |
57 | > testname=`basename \`pwd\`` |
|
57 | > testname=`basename \`pwd\`` | |
58 | > revsname=`hg --hidden log -T '-{desc}\n' --rev "${revs}"` |
|
58 | > revsname=`hg --hidden log -T '-{desc}\n' --rev "${revs}"` | |
59 | > prefix="${TESTTMP}/${testname}${revsname}" |
|
59 | > prefix="${TESTTMP}/${testname}${revsname}" | |
60 | > markersfile="${prefix}-relevant-markers.txt" |
|
60 | > markersfile="${prefix}-relevant-markers.txt" | |
61 | > bundlefile="${prefix}-bundle.hg" |
|
61 | > bundlefile="${prefix}-bundle.hg" | |
62 | > contentfile="${prefix}-bundle-markers.hg" |
|
62 | > contentfile="${prefix}-bundle-markers.hg" | |
63 | > hg debugobsolete --hidden --rev "${revs}" | sed 's/^/ /' > "${markersfile}" |
|
63 | > hg debugobsolete --hidden --rev "${revs}" | sed 's/^/ /' > "${markersfile}" | |
64 | > echo '### Matched revisions###' |
|
64 | > echo '### Matched revisions###' | |
65 | > hg log --hidden --rev "${revs}" | sort |
|
65 | > hg log --hidden --rev "${revs}" | sort | |
66 | > echo '### Relevant markers ###' |
|
66 | > echo '### Relevant markers ###' | |
67 | > cat "${markersfile}" |
|
67 | > cat "${markersfile}" | |
68 | > printf "# bundling: " |
|
68 | > printf "# bundling: " | |
69 | > hg bundle --hidden --base "parents(roots(${revs}))" --rev "${revs}" "${bundlefile}" |
|
69 | > hg bundle --hidden --base "parents(roots(${revs}))" --rev "${revs}" "${bundlefile}" | |
70 | > hg debugbundle "${bundlefile}" | grep "obsmarkers --" -A 100 | sed 1,2d > "${contentfile}" |
|
70 | > hg debugbundle "${bundlefile}" | grep "obsmarkers --" -A 100 | sed 1,2d > "${contentfile}" | |
71 | > echo '### Bundled markers ###' |
|
71 | > echo '### Bundled markers ###' | |
72 | > cat "${contentfile}" |
|
72 | > cat "${contentfile}" | |
73 | > echo '### diff <relevant> <bundled> ###' |
|
73 | > echo '### diff <relevant> <bundled> ###' | |
74 | > cmp "${markersfile}" "${contentfile}" || diff -u "${markersfile}" "${contentfile}" |
|
74 | > cmp "${markersfile}" "${contentfile}" || diff -u "${markersfile}" "${contentfile}" | |
75 | > echo '#################################' |
|
75 | > echo '#################################' | |
76 | > } |
|
76 | > } | |
77 |
|
77 | |||
78 | root setup |
|
78 | root setup | |
79 | ------------- |
|
79 | ------------- | |
80 |
|
80 | |||
81 | simple chain |
|
81 | simple chain | |
82 | ============ |
|
82 | ============ | |
83 |
|
83 | |||
84 | . A0 |
|
84 | . A0 | |
85 | . ⇠ø⇠◔ A1 |
|
85 | . ⇠ø⇠◔ A1 | |
86 | . |/ |
|
86 | . |/ | |
87 | . ● |
|
87 | . ● | |
88 |
|
88 | |||
89 | setup |
|
89 | setup | |
90 | ----- |
|
90 | ----- | |
91 |
|
91 | |||
92 | $ mktestrepo simple-chain |
|
92 | $ mktestrepo simple-chain | |
93 | $ mkcommit 'C-A0' |
|
93 | $ mkcommit 'C-A0' | |
94 | $ hg up 'desc("ROOT")' |
|
94 | $ hg up 'desc("ROOT")' | |
95 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
95 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
96 | $ mkcommit 'C-A1' |
|
96 | $ mkcommit 'C-A1' | |
97 | created new head |
|
97 | created new head | |
98 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` |
|
98 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` | |
99 | $ hg debugobsolete `getid 'desc("C-A0")'` a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 |
|
99 | $ hg debugobsolete `getid 'desc("C-A0")'` a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 | |
100 | $ hg debugobsolete a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 `getid 'desc("C-A1")'` |
|
100 | $ hg debugobsolete a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 `getid 'desc("C-A1")'` | |
101 |
|
101 | |||
102 | $ hg up 'desc("ROOT")' |
|
102 | $ hg up 'desc("ROOT")' | |
103 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
103 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
104 | $ hg log --hidden -G |
|
104 | $ hg log --hidden -G | |
105 | o cf2c22470d67: C-A1 |
|
105 | o cf2c22470d67: C-A1 | |
106 | | |
|
106 | | | |
107 | | x 84fcb0dfe17b: C-A0 |
|
107 | | x 84fcb0dfe17b: C-A0 | |
108 | |/ |
|
108 | |/ | |
109 | @ ea207398892e: ROOT |
|
109 | @ ea207398892e: ROOT | |
110 |
|
110 | |||
111 | $ hg debugobsolete |
|
111 | $ hg debugobsolete | |
112 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
112 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
113 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
113 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
114 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
114 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
115 |
|
115 | |||
116 | Actual testing |
|
116 | Actual testing | |
117 | -------------- |
|
117 | -------------- | |
118 |
|
118 | |||
119 | $ testrevs 'desc("C-A0")' |
|
119 | $ testrevs 'desc("C-A0")' | |
120 | ### Matched revisions### |
|
120 | ### Matched revisions### | |
121 | 84fcb0dfe17b: C-A0 |
|
121 | 84fcb0dfe17b: C-A0 | |
122 | ### Relevant markers ### |
|
122 | ### Relevant markers ### | |
123 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
123 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
124 | # bundling: 1 changesets found |
|
124 | # bundling: 1 changesets found | |
125 | ### Bundled markers ### |
|
125 | ### Bundled markers ### | |
126 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
126 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
127 | ### diff <relevant> <bundled> ### |
|
127 | ### diff <relevant> <bundled> ### | |
128 | ################################# |
|
128 | ################################# | |
129 |
|
129 | |||
130 | $ testrevs 'desc("C-A1")' |
|
130 | $ testrevs 'desc("C-A1")' | |
131 | ### Matched revisions### |
|
131 | ### Matched revisions### | |
132 | cf2c22470d67: C-A1 |
|
132 | cf2c22470d67: C-A1 | |
133 | ### Relevant markers ### |
|
133 | ### Relevant markers ### | |
134 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
134 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
135 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
135 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
136 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
136 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
137 | # bundling: 1 changesets found |
|
137 | # bundling: 1 changesets found | |
138 | ### Bundled markers ### |
|
138 | ### Bundled markers ### | |
139 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
139 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
140 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
140 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
141 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
141 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
142 | ### diff <relevant> <bundled> ### |
|
142 | ### diff <relevant> <bundled> ### | |
143 | ################################# |
|
143 | ################################# | |
144 |
|
144 | |||
145 | $ testrevs 'desc("C-A")' |
|
145 | $ testrevs 'desc("C-A")' | |
146 | ### Matched revisions### |
|
146 | ### Matched revisions### | |
147 | 84fcb0dfe17b: C-A0 |
|
147 | 84fcb0dfe17b: C-A0 | |
148 | cf2c22470d67: C-A1 |
|
148 | cf2c22470d67: C-A1 | |
149 | ### Relevant markers ### |
|
149 | ### Relevant markers ### | |
150 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
150 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
151 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
151 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
152 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
152 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
153 | # bundling: 2 changesets found |
|
153 | # bundling: 2 changesets found | |
154 | ### Bundled markers ### |
|
154 | ### Bundled markers ### | |
155 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
155 | 84fcb0dfe17b256ebae52e05572993b9194c018a a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
156 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
156 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
157 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
157 | a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
158 | ### diff <relevant> <bundled> ### |
|
158 | ### diff <relevant> <bundled> ### | |
159 | ################################# |
|
159 | ################################# | |
160 |
|
160 | |||
161 | chain with prune children |
|
161 | chain with prune children | |
162 | ========================= |
|
162 | ========================= | |
163 |
|
163 | |||
164 | . ⇠⊗ B0 |
|
164 | . ⇠⊗ B0 | |
165 | . | |
|
165 | . | | |
166 | . ⇠ø⇠◔ A1 |
|
166 | . ⇠ø⇠◔ A1 | |
167 | . | |
|
167 | . | | |
168 | . ● |
|
168 | . ● | |
169 |
|
169 | |||
170 | setup |
|
170 | setup | |
171 | ----- |
|
171 | ----- | |
172 |
|
172 | |||
173 | $ mktestrepo prune |
|
173 | $ mktestrepo prune | |
174 | $ mkcommit 'C-A0' |
|
174 | $ mkcommit 'C-A0' | |
175 | $ mkcommit 'C-B0' |
|
175 | $ mkcommit 'C-B0' | |
176 | $ hg up 'desc("ROOT")' |
|
176 | $ hg up 'desc("ROOT")' | |
177 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
177 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
178 | $ mkcommit 'C-A1' |
|
178 | $ mkcommit 'C-A1' | |
179 | created new head |
|
179 | created new head | |
180 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` |
|
180 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` | |
181 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` |
|
181 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` | |
182 | $ hg debugobsolete --record-parents `getid 'desc("C-B0")'` |
|
182 | $ hg debugobsolete --record-parents `getid 'desc("C-B0")'` | |
183 | $ hg up 'desc("ROOT")' |
|
183 | $ hg up 'desc("ROOT")' | |
184 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
184 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
185 | $ hg log --hidden -G |
|
185 | $ hg log --hidden -G | |
186 | o cf2c22470d67: C-A1 |
|
186 | o cf2c22470d67: C-A1 | |
187 | | |
|
187 | | | |
188 | | x 29f93b1df87b: C-B0 |
|
188 | | x 29f93b1df87b: C-B0 | |
189 | | | |
|
189 | | | | |
190 | | x 84fcb0dfe17b: C-A0 |
|
190 | | x 84fcb0dfe17b: C-A0 | |
191 | |/ |
|
191 | |/ | |
192 | @ ea207398892e: ROOT |
|
192 | @ ea207398892e: ROOT | |
193 |
|
193 | |||
194 | $ hg debugobsolete |
|
194 | $ hg debugobsolete | |
195 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
195 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
196 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
196 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
197 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
197 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
198 |
|
198 | |||
199 | Actual testing |
|
199 | Actual testing | |
200 | -------------- |
|
200 | -------------- | |
201 |
|
201 | |||
202 | $ testrevs 'desc("C-A0")' |
|
202 | $ testrevs 'desc("C-A0")' | |
203 | ### Matched revisions### |
|
203 | ### Matched revisions### | |
204 | 84fcb0dfe17b: C-A0 |
|
204 | 84fcb0dfe17b: C-A0 | |
205 | ### Relevant markers ### |
|
205 | ### Relevant markers ### | |
206 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
206 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
207 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
207 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
208 | # bundling: 1 changesets found |
|
208 | # bundling: 1 changesets found | |
209 | ### Bundled markers ### |
|
209 | ### Bundled markers ### | |
210 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
210 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
211 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
211 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
212 | ### diff <relevant> <bundled> ### |
|
212 | ### diff <relevant> <bundled> ### | |
213 | ################################# |
|
213 | ################################# | |
214 |
|
214 | |||
215 | $ testrevs 'desc("C-B0")' |
|
215 | $ testrevs 'desc("C-B0")' | |
216 | ### Matched revisions### |
|
216 | ### Matched revisions### | |
217 | 29f93b1df87b: C-B0 |
|
217 | 29f93b1df87b: C-B0 | |
218 | ### Relevant markers ### |
|
218 | ### Relevant markers ### | |
219 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
219 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
220 | # bundling: 1 changesets found |
|
220 | # bundling: 1 changesets found | |
221 | ### Bundled markers ### |
|
221 | ### Bundled markers ### | |
222 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
222 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
223 | ### diff <relevant> <bundled> ### |
|
223 | ### diff <relevant> <bundled> ### | |
224 | ################################# |
|
224 | ################################# | |
225 |
|
225 | |||
226 | $ testrevs 'desc("C-A1")' |
|
226 | $ testrevs 'desc("C-A1")' | |
227 | ### Matched revisions### |
|
227 | ### Matched revisions### | |
228 | cf2c22470d67: C-A1 |
|
228 | cf2c22470d67: C-A1 | |
229 | ### Relevant markers ### |
|
229 | ### Relevant markers ### | |
230 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
230 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
231 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
231 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
232 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
232 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
233 | # bundling: 1 changesets found |
|
233 | # bundling: 1 changesets found | |
234 | ### Bundled markers ### |
|
234 | ### Bundled markers ### | |
235 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
235 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
236 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
236 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
237 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
237 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
238 | ### diff <relevant> <bundled> ### |
|
238 | ### diff <relevant> <bundled> ### | |
239 | ################################# |
|
239 | ################################# | |
240 |
|
240 | |||
241 | bundling multiple revisions |
|
241 | bundling multiple revisions | |
242 |
|
242 | |||
243 | $ testrevs 'desc("C-A")' |
|
243 | $ testrevs 'desc("C-A")' | |
244 | ### Matched revisions### |
|
244 | ### Matched revisions### | |
245 | 84fcb0dfe17b: C-A0 |
|
245 | 84fcb0dfe17b: C-A0 | |
246 | cf2c22470d67: C-A1 |
|
246 | cf2c22470d67: C-A1 | |
247 | ### Relevant markers ### |
|
247 | ### Relevant markers ### | |
248 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
248 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
249 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
249 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
250 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
250 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
251 | # bundling: 2 changesets found |
|
251 | # bundling: 2 changesets found | |
252 | ### Bundled markers ### |
|
252 | ### Bundled markers ### | |
253 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
253 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
254 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
254 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
255 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
255 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
256 | ### diff <relevant> <bundled> ### |
|
256 | ### diff <relevant> <bundled> ### | |
257 | ################################# |
|
257 | ################################# | |
258 |
|
258 | |||
259 | $ testrevs 'desc("C-")' |
|
259 | $ testrevs 'desc("C-")' | |
260 | ### Matched revisions### |
|
260 | ### Matched revisions### | |
261 | 29f93b1df87b: C-B0 |
|
261 | 29f93b1df87b: C-B0 | |
262 | 84fcb0dfe17b: C-A0 |
|
262 | 84fcb0dfe17b: C-A0 | |
263 | cf2c22470d67: C-A1 |
|
263 | cf2c22470d67: C-A1 | |
264 | ### Relevant markers ### |
|
264 | ### Relevant markers ### | |
265 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
265 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
266 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
266 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
267 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
267 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
268 | # bundling: 3 changesets found |
|
268 | # bundling: 3 changesets found | |
269 | ### Bundled markers ### |
|
269 | ### Bundled markers ### | |
270 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
270 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
271 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
271 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
272 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
272 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
273 | ### diff <relevant> <bundled> ### |
|
273 | ### diff <relevant> <bundled> ### | |
274 | ################################# |
|
274 | ################################# | |
275 |
|
275 | |||
276 | chain with precursors also pruned |
|
276 | chain with precursors also pruned | |
277 | ================================= |
|
277 | ================================= | |
278 |
|
278 | |||
279 | . A0 (also pruned) |
|
279 | . A0 (also pruned) | |
280 | . ⇠ø⇠◔ A1 |
|
280 | . ⇠ø⇠◔ A1 | |
281 | . | |
|
281 | . | | |
282 | . ● |
|
282 | . ● | |
283 |
|
283 | |||
284 | setup |
|
284 | setup | |
285 | ----- |
|
285 | ----- | |
286 |
|
286 | |||
287 | $ mktestrepo prune-inline |
|
287 | $ mktestrepo prune-inline | |
288 | $ mkcommit 'C-A0' |
|
288 | $ mkcommit 'C-A0' | |
289 | $ hg up 'desc("ROOT")' |
|
289 | $ hg up 'desc("ROOT")' | |
290 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
290 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
291 | $ mkcommit 'C-A1' |
|
291 | $ mkcommit 'C-A1' | |
292 | created new head |
|
292 | created new head | |
293 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` |
|
293 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` | |
294 | $ hg debugobsolete --record-parents `getid 'desc("C-A0")'` |
|
294 | $ hg debugobsolete --record-parents `getid 'desc("C-A0")'` | |
295 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` |
|
295 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` | |
296 | $ hg up 'desc("ROOT")' |
|
296 | $ hg up 'desc("ROOT")' | |
297 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
297 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
298 | $ hg log --hidden -G |
|
298 | $ hg log --hidden -G | |
299 | o cf2c22470d67: C-A1 |
|
299 | o cf2c22470d67: C-A1 | |
300 | | |
|
300 | | | |
301 | | x 84fcb0dfe17b: C-A0 |
|
301 | | x 84fcb0dfe17b: C-A0 | |
302 | |/ |
|
302 | |/ | |
303 | @ ea207398892e: ROOT |
|
303 | @ ea207398892e: ROOT | |
304 |
|
304 | |||
305 | $ hg debugobsolete |
|
305 | $ hg debugobsolete | |
306 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
306 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
307 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
307 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
308 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
308 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
309 |
|
309 | |||
310 | Actual testing |
|
310 | Actual testing | |
311 | -------------- |
|
311 | -------------- | |
312 |
|
312 | |||
313 | $ testrevs 'desc("C-A0")' |
|
313 | $ testrevs 'desc("C-A0")' | |
314 | ### Matched revisions### |
|
314 | ### Matched revisions### | |
315 | 84fcb0dfe17b: C-A0 |
|
315 | 84fcb0dfe17b: C-A0 | |
316 | ### Relevant markers ### |
|
316 | ### Relevant markers ### | |
317 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
317 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
318 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
318 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
319 | # bundling: 1 changesets found |
|
319 | # bundling: 1 changesets found | |
320 | ### Bundled markers ### |
|
320 | ### Bundled markers ### | |
321 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
321 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
322 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
322 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
323 | ### diff <relevant> <bundled> ### |
|
323 | ### diff <relevant> <bundled> ### | |
324 | ################################# |
|
324 | ################################# | |
325 |
|
325 | |||
326 | $ testrevs 'desc("C-A1")' |
|
326 | $ testrevs 'desc("C-A1")' | |
327 | ### Matched revisions### |
|
327 | ### Matched revisions### | |
328 | cf2c22470d67: C-A1 |
|
328 | cf2c22470d67: C-A1 | |
329 | ### Relevant markers ### |
|
329 | ### Relevant markers ### | |
330 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
330 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
331 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
331 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
332 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
332 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
333 | # bundling: 1 changesets found |
|
333 | # bundling: 1 changesets found | |
334 | ### Bundled markers ### |
|
334 | ### Bundled markers ### | |
335 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
335 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
336 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
336 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
337 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
337 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
338 | ### diff <relevant> <bundled> ### |
|
338 | ### diff <relevant> <bundled> ### | |
339 | ################################# |
|
339 | ################################# | |
340 |
|
340 | |||
341 | $ testrevs 'desc("C-A")' |
|
341 | $ testrevs 'desc("C-A")' | |
342 | ### Matched revisions### |
|
342 | ### Matched revisions### | |
343 | 84fcb0dfe17b: C-A0 |
|
343 | 84fcb0dfe17b: C-A0 | |
344 | cf2c22470d67: C-A1 |
|
344 | cf2c22470d67: C-A1 | |
345 | ### Relevant markers ### |
|
345 | ### Relevant markers ### | |
346 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
346 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
347 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
347 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
348 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
348 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
349 | # bundling: 2 changesets found |
|
349 | # bundling: 2 changesets found | |
350 | ### Bundled markers ### |
|
350 | ### Bundled markers ### | |
351 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
351 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
352 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
352 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
353 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
353 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
354 | ### diff <relevant> <bundled> ### |
|
354 | ### diff <relevant> <bundled> ### | |
355 | ################################# |
|
355 | ################################# | |
356 |
|
356 | |||
357 | chain with missing prune |
|
357 | chain with missing prune | |
358 | ======================== |
|
358 | ======================== | |
359 |
|
359 | |||
360 | . ⊗ B |
|
360 | . ⊗ B | |
361 | . | |
|
361 | . | | |
362 | . ⇠◌⇠◔ A1 |
|
362 | . ⇠◌⇠◔ A1 | |
363 | . | |
|
363 | . | | |
364 | . ● |
|
364 | . ● | |
365 |
|
365 | |||
366 | setup |
|
366 | setup | |
367 | ----- |
|
367 | ----- | |
368 |
|
368 | |||
369 | $ mktestrepo missing-prune |
|
369 | $ mktestrepo missing-prune | |
370 | $ mkcommit 'C-A0' |
|
370 | $ mkcommit 'C-A0' | |
371 | $ mkcommit 'C-B0' |
|
371 | $ mkcommit 'C-B0' | |
372 | $ hg up 'desc("ROOT")' |
|
372 | $ hg up 'desc("ROOT")' | |
373 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
373 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
374 | $ mkcommit 'C-A1' |
|
374 | $ mkcommit 'C-A1' | |
375 | created new head |
|
375 | created new head | |
376 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` |
|
376 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` | |
377 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` |
|
377 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` | |
378 | $ hg debugobsolete --record-parents `getid 'desc("C-B0")'` |
|
378 | $ hg debugobsolete --record-parents `getid 'desc("C-B0")'` | |
379 |
|
379 | |||
380 | (it is annoying to create prune with parent data without the changeset, so we strip it after the fact) |
|
380 | (it is annoying to create prune with parent data without the changeset, so we strip it after the fact) | |
381 |
|
381 | |||
382 | $ hg strip --hidden --rev 'desc("C-A0")::' --no-backup |
|
382 | $ hg strip --hidden --rev 'desc("C-A0")::' --no-backup | |
383 |
|
383 | |||
384 | $ hg up 'desc("ROOT")' |
|
384 | $ hg up 'desc("ROOT")' | |
385 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
385 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
386 | $ hg log --hidden -G |
|
386 | $ hg log --hidden -G | |
387 | o cf2c22470d67: C-A1 |
|
387 | o cf2c22470d67: C-A1 | |
388 | | |
|
388 | | | |
389 | @ ea207398892e: ROOT |
|
389 | @ ea207398892e: ROOT | |
390 |
|
390 | |||
391 | $ hg debugobsolete |
|
391 | $ hg debugobsolete | |
392 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
392 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
393 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
393 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
394 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
394 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
395 |
|
395 | |||
396 | Actual testing |
|
396 | Actual testing | |
397 | -------------- |
|
397 | -------------- | |
398 |
|
398 | |||
399 |
$ |
|
399 | $ testrevs 'desc("C-A1")' | |
|
400 | ### Matched revisions### | |||
|
401 | cf2c22470d67: C-A1 | |||
|
402 | ### Relevant markers ### | |||
400 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
403 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
401 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
404 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
402 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
405 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
|
406 | # bundling: 1 changesets found | |||
|
407 | ### Bundled markers ### | |||
|
408 | 29f93b1df87baee1824e014080d8adf145f81783 0 {84fcb0dfe17b256ebae52e05572993b9194c018a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |||
|
409 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |||
|
410 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |||
|
411 | ### diff <relevant> <bundled> ### | |||
|
412 | ################################# | |||
403 |
|
413 | |||
404 | chain with precursors also pruned |
|
414 | chain with precursors also pruned | |
405 | ================================= |
|
415 | ================================= | |
406 |
|
416 | |||
407 | . A0 (also pruned) |
|
417 | . A0 (also pruned) | |
408 | . ⇠◌⇠◔ A1 |
|
418 | . ⇠◌⇠◔ A1 | |
409 | . | |
|
419 | . | | |
410 | . ● |
|
420 | . ● | |
411 |
|
421 | |||
412 | setup |
|
422 | setup | |
413 | ----- |
|
423 | ----- | |
414 |
|
424 | |||
415 | $ mktestrepo prune-inline-missing |
|
425 | $ mktestrepo prune-inline-missing | |
416 | $ mkcommit 'C-A0' |
|
426 | $ mkcommit 'C-A0' | |
417 | $ hg up 'desc("ROOT")' |
|
427 | $ hg up 'desc("ROOT")' | |
418 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
428 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
419 | $ mkcommit 'C-A1' |
|
429 | $ mkcommit 'C-A1' | |
420 | created new head |
|
430 | created new head | |
421 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` |
|
431 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A0")'` | |
422 | $ hg debugobsolete --record-parents `getid 'desc("C-A0")'` |
|
432 | $ hg debugobsolete --record-parents `getid 'desc("C-A0")'` | |
423 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` |
|
433 | $ hg debugobsolete `getid 'desc("C-A0")'` `getid 'desc("C-A1")'` | |
424 |
|
434 | |||
425 | (it is annoying to create prune with parent data without the changeset, so we strip it after the fact) |
|
435 | (it is annoying to create prune with parent data without the changeset, so we strip it after the fact) | |
426 |
|
436 | |||
427 | $ hg strip --hidden --rev 'desc("C-A0")::' --no-backup |
|
437 | $ hg strip --hidden --rev 'desc("C-A0")::' --no-backup | |
428 |
|
438 | |||
429 | $ hg up 'desc("ROOT")' |
|
439 | $ hg up 'desc("ROOT")' | |
430 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
440 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
431 | $ hg log --hidden -G |
|
441 | $ hg log --hidden -G | |
432 | o cf2c22470d67: C-A1 |
|
442 | o cf2c22470d67: C-A1 | |
433 | | |
|
443 | | | |
434 | @ ea207398892e: ROOT |
|
444 | @ ea207398892e: ROOT | |
435 |
|
445 | |||
436 | $ hg debugobsolete |
|
446 | $ hg debugobsolete | |
437 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
447 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
438 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
448 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
439 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
449 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
440 |
|
450 | |||
441 | Actual testing |
|
451 | Actual testing | |
442 | -------------- |
|
452 | -------------- | |
443 |
|
453 | |||
444 | $ hg debugobsolete --rev 'desc("C-A1")' |
|
454 | $ hg debugobsolete --rev 'desc("C-A1")' | |
445 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
455 | 84fcb0dfe17b256ebae52e05572993b9194c018a 0 {ea207398892eb49e06441f10dda2a731f0450f20} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
446 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
456 | 84fcb0dfe17b256ebae52e05572993b9194c018a cf2c22470d67233004e934a31184ac2b35389914 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
447 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
457 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 84fcb0dfe17b256ebae52e05572993b9194c018a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
448 |
|
458 | |||
449 | Chain with fold and split |
|
459 | Chain with fold and split | |
450 | ========================= |
|
460 | ========================= | |
451 |
|
461 | |||
452 | setup |
|
462 | setup | |
453 | ----- |
|
463 | ----- | |
454 |
|
464 | |||
455 | $ mktestrepo split-fold |
|
465 | $ mktestrepo split-fold | |
456 | $ mkcommit 'C-A' |
|
466 | $ mkcommit 'C-A' | |
457 | $ hg up 'desc("ROOT")' |
|
467 | $ hg up 'desc("ROOT")' | |
458 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
468 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
459 | $ mkcommit 'C-B' |
|
469 | $ mkcommit 'C-B' | |
460 | created new head |
|
470 | created new head | |
461 | $ hg up 'desc("ROOT")' |
|
471 | $ hg up 'desc("ROOT")' | |
462 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
472 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
463 | $ mkcommit 'C-C' |
|
473 | $ mkcommit 'C-C' | |
464 | created new head |
|
474 | created new head | |
465 | $ hg up 'desc("ROOT")' |
|
475 | $ hg up 'desc("ROOT")' | |
466 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
476 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
467 | $ mkcommit 'C-D' |
|
477 | $ mkcommit 'C-D' | |
468 | created new head |
|
478 | created new head | |
469 | $ hg up 'desc("ROOT")' |
|
479 | $ hg up 'desc("ROOT")' | |
470 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
480 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
471 | $ mkcommit 'C-E' |
|
481 | $ mkcommit 'C-E' | |
472 | created new head |
|
482 | created new head | |
473 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A")'` |
|
483 | $ hg debugobsolete a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 `getid 'desc("C-A")'` | |
474 | $ hg debugobsolete `getid 'desc("C-A")'` `getid 'desc("C-B")'` `getid 'desc("C-C")'` # record split |
|
484 | $ hg debugobsolete `getid 'desc("C-A")'` `getid 'desc("C-B")'` `getid 'desc("C-C")'` # record split | |
475 | $ hg debugobsolete `getid 'desc("C-A")'` `getid 'desc("C-D")'` # other divergent |
|
485 | $ hg debugobsolete `getid 'desc("C-A")'` `getid 'desc("C-D")'` # other divergent | |
476 | $ hg debugobsolete `getid 'desc("C-A")'` b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 |
|
486 | $ hg debugobsolete `getid 'desc("C-A")'` b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 | |
477 | $ hg debugobsolete b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 `getid 'desc("C-E")'` |
|
487 | $ hg debugobsolete b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 `getid 'desc("C-E")'` | |
478 | $ hg debugobsolete `getid 'desc("C-B")'` `getid 'desc("C-E")'` |
|
488 | $ hg debugobsolete `getid 'desc("C-B")'` `getid 'desc("C-E")'` | |
479 | $ hg debugobsolete `getid 'desc("C-C")'` `getid 'desc("C-E")'` |
|
489 | $ hg debugobsolete `getid 'desc("C-C")'` `getid 'desc("C-E")'` | |
480 | $ hg debugobsolete `getid 'desc("C-D")'` `getid 'desc("C-E")'` |
|
490 | $ hg debugobsolete `getid 'desc("C-D")'` `getid 'desc("C-E")'` | |
481 | $ hg debugobsolete c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0 `getid 'desc("C-E")'` |
|
491 | $ hg debugobsolete c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0 `getid 'desc("C-E")'` | |
482 |
|
492 | |||
483 | $ hg up 'desc("ROOT")' |
|
493 | $ hg up 'desc("ROOT")' | |
484 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
494 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
485 | $ hg log --hidden -G |
|
495 | $ hg log --hidden -G | |
486 | o 2f20ff6509f0: C-E |
|
496 | o 2f20ff6509f0: C-E | |
487 | | |
|
497 | | | |
488 | | x 06dc9da25ef0: C-D |
|
498 | | x 06dc9da25ef0: C-D | |
489 | |/ |
|
499 | |/ | |
490 | | x 27ec657ca21d: C-C |
|
500 | | x 27ec657ca21d: C-C | |
491 | |/ |
|
501 | |/ | |
492 | | x a9b9da38ed96: C-B |
|
502 | | x a9b9da38ed96: C-B | |
493 | |/ |
|
503 | |/ | |
494 | | x 9ac430e15fca: C-A |
|
504 | | x 9ac430e15fca: C-A | |
495 | |/ |
|
505 | |/ | |
496 | @ ea207398892e: ROOT |
|
506 | @ ea207398892e: ROOT | |
497 |
|
507 | |||
498 | $ hg debugobsolete |
|
508 | $ hg debugobsolete | |
499 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
509 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
500 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
510 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
501 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
511 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
502 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
512 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
503 | b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
513 | b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
504 | a9b9da38ed96f8c6c14f429441f625a344eb4696 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
514 | a9b9da38ed96f8c6c14f429441f625a344eb4696 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
505 | 27ec657ca21dd27c36c99fa75586f72ff0d442f1 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
515 | 27ec657ca21dd27c36c99fa75586f72ff0d442f1 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
506 | 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
516 | 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
507 | c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
517 | c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
508 |
|
518 | |||
509 | Actual testing |
|
519 | Actual testing | |
510 | -------------- |
|
520 | -------------- | |
511 |
|
521 | |||
512 | $ hg debugobsolete --rev 'desc("C-A")' |
|
522 | $ hg debugobsolete --rev 'desc("C-A")' | |
513 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
523 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
514 | $ hg debugobsolete --rev 'desc("C-B")' |
|
524 | $ hg debugobsolete --rev 'desc("C-B")' | |
515 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
525 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
516 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
526 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
517 | $ hg debugobsolete --rev 'desc("C-C")' |
|
527 | $ hg debugobsolete --rev 'desc("C-C")' | |
518 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
528 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
519 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
529 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
520 | $ hg debugobsolete --rev 'desc("C-D")' |
|
530 | $ hg debugobsolete --rev 'desc("C-D")' | |
521 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
531 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
522 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
532 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
523 | $ hg debugobsolete --rev 'desc("C-E")' |
|
533 | $ hg debugobsolete --rev 'desc("C-E")' | |
524 | 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
534 | 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
525 | 27ec657ca21dd27c36c99fa75586f72ff0d442f1 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
535 | 27ec657ca21dd27c36c99fa75586f72ff0d442f1 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
526 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
536 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 06dc9da25ef03e1ff7864dded5fcba42eff2a3f0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
527 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
537 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c a9b9da38ed96f8c6c14f429441f625a344eb4696 27ec657ca21dd27c36c99fa75586f72ff0d442f1 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
528 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
538 | 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
529 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
539 | a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 9ac430e15fca923b0ba027ca85d4d75c5c9cb73c 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
530 | a9b9da38ed96f8c6c14f429441f625a344eb4696 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
540 | a9b9da38ed96f8c6c14f429441f625a344eb4696 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
531 | b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
541 | b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
532 | c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
542 | c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0c0 2f20ff6509f0e013e90c5c8efd996131c918b0ca 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
533 |
|
543 | |||
534 | changeset pruned on its own |
|
544 | changeset pruned on its own | |
535 | =========================== |
|
545 | =========================== | |
536 |
|
546 | |||
537 | . ⊗ B |
|
547 | . ⊗ B | |
538 | . | |
|
548 | . | | |
539 | . ◕ A |
|
549 | . ◕ A | |
540 | . | |
|
550 | . | | |
541 | . ● |
|
551 | . ● | |
542 |
|
552 | |||
543 | setup |
|
553 | setup | |
544 | ----- |
|
554 | ----- | |
545 |
|
555 | |||
546 | $ mktestrepo lonely-prune |
|
556 | $ mktestrepo lonely-prune | |
547 | $ hg up 'desc("ROOT")' |
|
557 | $ hg up 'desc("ROOT")' | |
548 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
558 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
549 | $ mkcommit 'C-A' |
|
559 | $ mkcommit 'C-A' | |
550 | $ mkcommit 'C-B' |
|
560 | $ mkcommit 'C-B' | |
551 | $ hg debugobsolete --record-parent `getid 'desc("C-B")'` |
|
561 | $ hg debugobsolete --record-parent `getid 'desc("C-B")'` | |
552 |
|
562 | |||
553 | $ hg up 'desc("ROOT")' |
|
563 | $ hg up 'desc("ROOT")' | |
554 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
564 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
555 | $ hg log --hidden -G |
|
565 | $ hg log --hidden -G | |
556 | x cefb651fc2fd: C-B |
|
566 | x cefb651fc2fd: C-B | |
557 | | |
|
567 | | | |
558 | o 9ac430e15fca: C-A |
|
568 | o 9ac430e15fca: C-A | |
559 | | |
|
569 | | | |
560 | @ ea207398892e: ROOT |
|
570 | @ ea207398892e: ROOT | |
561 |
|
571 | |||
562 | $ hg debugobsolete |
|
572 | $ hg debugobsolete | |
563 | cefb651fc2fdc7bb75e588781de5e432c134e8a5 0 {9ac430e15fca923b0ba027ca85d4d75c5c9cb73c} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
573 | cefb651fc2fdc7bb75e588781de5e432c134e8a5 0 {9ac430e15fca923b0ba027ca85d4d75c5c9cb73c} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
564 |
|
574 | |||
565 | Actual testing |
|
575 | Actual testing | |
566 | -------------- |
|
576 | -------------- | |
567 | $ hg debugobsolete --rev 'desc("C-A")' |
|
577 | $ hg debugobsolete --rev 'desc("C-A")' | |
568 | cefb651fc2fdc7bb75e588781de5e432c134e8a5 0 {9ac430e15fca923b0ba027ca85d4d75c5c9cb73c} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
578 | cefb651fc2fdc7bb75e588781de5e432c134e8a5 0 {9ac430e15fca923b0ba027ca85d4d75c5c9cb73c} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | |
569 | $ hg debugobsolete --hidden --rev 'desc("C-B")' |
|
579 | $ hg debugobsolete --hidden --rev 'desc("C-B")' | |
570 | cefb651fc2fdc7bb75e588781de5e432c134e8a5 0 {9ac430e15fca923b0ba027ca85d4d75c5c9cb73c} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
580 | cefb651fc2fdc7bb75e588781de5e432c134e8a5 0 {9ac430e15fca923b0ba027ca85d4d75c5c9cb73c} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
General Comments 0
You need to be logged in to leave comments.
Login now