Show More
@@ -1,388 +1,391 b'' | |||||
1 | ===================== |
|
1 | ===================== | |
2 | Test workflow options |
|
2 | Test workflow options | |
3 | ===================== |
|
3 | ===================== | |
4 |
|
4 | |||
5 | $ . "$TESTDIR/testlib/obsmarker-common.sh" |
|
5 | $ . "$TESTDIR/testlib/obsmarker-common.sh" | |
6 |
|
6 | |||
7 | Test single head enforcing - Setup |
|
7 | Test single head enforcing - Setup | |
8 | ============================================= |
|
8 | ============================================= | |
9 |
|
9 | |||
10 | $ cat << EOF >> $HGRCPATH |
|
10 | $ cat << EOF >> $HGRCPATH | |
11 | > [experimental] |
|
11 | > [experimental] | |
12 | > evolution = all |
|
12 | > evolution = all | |
13 | > EOF |
|
13 | > EOF | |
14 | $ hg init single-head-server |
|
14 | $ hg init single-head-server | |
15 | $ cd single-head-server |
|
15 | $ cd single-head-server | |
16 | $ cat <<EOF >> .hg/hgrc |
|
16 | $ cat <<EOF >> .hg/hgrc | |
17 | > [phases] |
|
17 | > [phases] | |
18 | > publish = no |
|
18 | > publish = no | |
19 | > [experimental] |
|
19 | > [experimental] | |
20 | > single-head-per-branch = yes |
|
20 | > single-head-per-branch = yes | |
21 | > EOF |
|
21 | > EOF | |
22 | $ mkcommit ROOT |
|
22 | $ mkcommit ROOT | |
23 | $ mkcommit c_dA0 |
|
23 | $ mkcommit c_dA0 | |
24 | $ cd .. |
|
24 | $ cd .. | |
25 |
|
25 | |||
26 | $ hg clone single-head-server client |
|
26 | $ hg clone single-head-server client | |
27 | updating to branch default |
|
27 | updating to branch default | |
28 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
28 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
29 |
|
29 | |||
30 | Test single head enforcing - with branch only |
|
30 | Test single head enforcing - with branch only | |
31 | --------------------------------------------- |
|
31 | --------------------------------------------- | |
32 |
|
32 | |||
33 | $ cd client |
|
33 | $ cd client | |
34 |
|
34 | |||
35 | continuing the current defaultbranch |
|
35 | continuing the current defaultbranch | |
36 |
|
36 | |||
37 | $ mkcommit c_dB0 |
|
37 | $ mkcommit c_dB0 | |
38 | $ hg push |
|
38 | $ hg push | |
39 | pushing to $TESTTMP/single-head-server |
|
39 | pushing to $TESTTMP/single-head-server | |
40 | searching for changes |
|
40 | searching for changes | |
41 | adding changesets |
|
41 | adding changesets | |
42 | adding manifests |
|
42 | adding manifests | |
43 | adding file changes |
|
43 | adding file changes | |
44 | added 1 changesets with 1 changes to 1 files |
|
44 | added 1 changesets with 1 changes to 1 files | |
45 |
|
45 | |||
46 | creating a new branch |
|
46 | creating a new branch | |
47 |
|
47 | |||
48 | $ hg up 'desc("ROOT")' |
|
48 | $ hg up 'desc("ROOT")' | |
49 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
49 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
50 | $ hg branch branch_A |
|
50 | $ hg branch branch_A | |
51 | marked working directory as branch branch_A |
|
51 | marked working directory as branch branch_A | |
52 | (branches are permanent and global, did you want a bookmark?) |
|
52 | (branches are permanent and global, did you want a bookmark?) | |
53 | $ mkcommit c_aC0 |
|
53 | $ mkcommit c_aC0 | |
54 | $ hg push --new-branch |
|
54 | $ hg push --new-branch | |
55 | pushing to $TESTTMP/single-head-server |
|
55 | pushing to $TESTTMP/single-head-server | |
56 | searching for changes |
|
56 | searching for changes | |
57 | adding changesets |
|
57 | adding changesets | |
58 | adding manifests |
|
58 | adding manifests | |
59 | adding file changes |
|
59 | adding file changes | |
60 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
60 | added 1 changesets with 1 changes to 1 files (+1 heads) | |
61 |
|
61 | |||
62 | Create a new head on the default branch |
|
62 | Create a new head on the default branch | |
63 |
|
63 | |||
64 | $ hg up 'desc("c_dA0")' |
|
64 | $ hg up 'desc("c_dA0")' | |
65 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
65 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
66 | $ mkcommit c_dD0 |
|
66 | $ mkcommit c_dD0 | |
67 | created new head |
|
67 | created new head | |
|
68 | $ hg log -r 'heads(::branch("default"))' -T '{node|short}\n' | |||
|
69 | 286d02a6e2a2 | |||
|
70 | 9bf953aa81f6 | |||
68 | $ hg push -f |
|
71 | $ hg push -f | |
69 | pushing to $TESTTMP/single-head-server |
|
72 | pushing to $TESTTMP/single-head-server | |
70 | searching for changes |
|
73 | searching for changes | |
71 | adding changesets |
|
74 | adding changesets | |
72 | adding manifests |
|
75 | adding manifests | |
73 | adding file changes |
|
76 | adding file changes | |
74 | transaction abort! |
|
77 | transaction abort! | |
75 | rollback completed |
|
78 | rollback completed | |
76 | abort: rejecting multiple heads on branch "default" |
|
79 | abort: rejecting multiple heads on branch "default" | |
77 | (2 heads: 286d02a6e2a2 9bf953aa81f6) |
|
80 | (2 heads: 286d02a6e2a2 9bf953aa81f6) | |
78 | [255] |
|
81 | [255] | |
79 |
|
82 | |||
80 | remerge them |
|
83 | remerge them | |
81 |
|
84 | |||
82 | $ hg merge |
|
85 | $ hg merge | |
83 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
86 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
84 | (branch merge, don't forget to commit) |
|
87 | (branch merge, don't forget to commit) | |
85 | $ mkcommit c_dE0 |
|
88 | $ mkcommit c_dE0 | |
86 | $ hg push |
|
89 | $ hg push | |
87 | pushing to $TESTTMP/single-head-server |
|
90 | pushing to $TESTTMP/single-head-server | |
88 | searching for changes |
|
91 | searching for changes | |
89 | adding changesets |
|
92 | adding changesets | |
90 | adding manifests |
|
93 | adding manifests | |
91 | adding file changes |
|
94 | adding file changes | |
92 | added 2 changesets with 2 changes to 2 files |
|
95 | added 2 changesets with 2 changes to 2 files | |
93 |
|
96 | |||
94 | Test single head enforcing - after rewrite |
|
97 | Test single head enforcing - after rewrite | |
95 | ------------------------------------------ |
|
98 | ------------------------------------------ | |
96 |
|
99 | |||
97 | $ mkcommit c_dF0 |
|
100 | $ mkcommit c_dF0 | |
98 | $ hg push |
|
101 | $ hg push | |
99 | pushing to $TESTTMP/single-head-server |
|
102 | pushing to $TESTTMP/single-head-server | |
100 | searching for changes |
|
103 | searching for changes | |
101 | adding changesets |
|
104 | adding changesets | |
102 | adding manifests |
|
105 | adding manifests | |
103 | adding file changes |
|
106 | adding file changes | |
104 | added 1 changesets with 1 changes to 1 files |
|
107 | added 1 changesets with 1 changes to 1 files | |
105 | $ hg commit --amend -m c_dF1 |
|
108 | $ hg commit --amend -m c_dF1 | |
106 | $ hg push |
|
109 | $ hg push | |
107 | pushing to $TESTTMP/single-head-server |
|
110 | pushing to $TESTTMP/single-head-server | |
108 | searching for changes |
|
111 | searching for changes | |
109 | adding changesets |
|
112 | adding changesets | |
110 | adding manifests |
|
113 | adding manifests | |
111 | adding file changes |
|
114 | adding file changes | |
112 | added 1 changesets with 0 changes to 1 files (+1 heads) |
|
115 | added 1 changesets with 0 changes to 1 files (+1 heads) | |
113 | 1 new obsolescence markers |
|
116 | 1 new obsolescence markers | |
114 | obsoleted 1 changesets |
|
117 | obsoleted 1 changesets | |
115 |
|
118 | |||
116 | Check it does not interfer with strip |
|
119 | Check it does not interfer with strip | |
117 | ------------------------------------- |
|
120 | ------------------------------------- | |
118 |
|
121 | |||
119 | setup |
|
122 | setup | |
120 |
|
123 | |||
121 | $ hg branch branch_A --force |
|
124 | $ hg branch branch_A --force | |
122 | marked working directory as branch branch_A |
|
125 | marked working directory as branch branch_A | |
123 | $ mkcommit c_aG0 |
|
126 | $ mkcommit c_aG0 | |
124 | created new head |
|
127 | created new head | |
125 | $ hg update 'desc("c_dF1")' |
|
128 | $ hg update 'desc("c_dF1")' | |
126 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
129 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
127 | $ mkcommit c_dH0 |
|
130 | $ mkcommit c_dH0 | |
128 | $ hg update 'desc("c_aG0")' |
|
131 | $ hg update 'desc("c_aG0")' | |
129 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
132 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
130 | $ hg merge |
|
133 | $ hg merge | |
131 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
134 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
132 | (branch merge, don't forget to commit) |
|
135 | (branch merge, don't forget to commit) | |
133 | $ mkcommit c_aI0 |
|
136 | $ mkcommit c_aI0 | |
134 | $ hg log -G |
|
137 | $ hg log -G | |
135 | @ changeset: 10:49003e504178 |
|
138 | @ changeset: 10:49003e504178 | |
136 | |\ branch: branch_A |
|
139 | |\ branch: branch_A | |
137 | | | tag: tip |
|
140 | | | tag: tip | |
138 | | | parent: 8:a33fb808fb4b |
|
141 | | | parent: 8:a33fb808fb4b | |
139 | | | parent: 3:840af1c6bc88 |
|
142 | | | parent: 3:840af1c6bc88 | |
140 | | | user: test |
|
143 | | | user: test | |
141 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
144 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
142 | | | summary: c_aI0 |
|
145 | | | summary: c_aI0 | |
143 | | | |
|
146 | | | | |
144 | | | o changeset: 9:fe47ea669cea |
|
147 | | | o changeset: 9:fe47ea669cea | |
145 | | | | parent: 7:99a2dc242c5d |
|
148 | | | | parent: 7:99a2dc242c5d | |
146 | | | | user: test |
|
149 | | | | user: test | |
147 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
150 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
148 | | | | summary: c_dH0 |
|
151 | | | | summary: c_dH0 | |
149 | | | | |
|
152 | | | | | |
150 | | o | changeset: 8:a33fb808fb4b |
|
153 | | o | changeset: 8:a33fb808fb4b | |
151 | | |/ branch: branch_A |
|
154 | | |/ branch: branch_A | |
152 | | | user: test |
|
155 | | | user: test | |
153 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
156 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
154 | | | summary: c_aG0 |
|
157 | | | summary: c_aG0 | |
155 | | | |
|
158 | | | | |
156 | | o changeset: 7:99a2dc242c5d |
|
159 | | o changeset: 7:99a2dc242c5d | |
157 | | | parent: 5:6ed1df20edb1 |
|
160 | | | parent: 5:6ed1df20edb1 | |
158 | | | user: test |
|
161 | | | user: test | |
159 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
162 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
160 | | | summary: c_dF1 |
|
163 | | | summary: c_dF1 | |
161 | | | |
|
164 | | | | |
162 | | o changeset: 5:6ed1df20edb1 |
|
165 | | o changeset: 5:6ed1df20edb1 | |
163 | | |\ parent: 4:9bf953aa81f6 |
|
166 | | |\ parent: 4:9bf953aa81f6 | |
164 | | | | parent: 2:286d02a6e2a2 |
|
167 | | | | parent: 2:286d02a6e2a2 | |
165 | | | | user: test |
|
168 | | | | user: test | |
166 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
169 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
167 | | | | summary: c_dE0 |
|
170 | | | | summary: c_dE0 | |
168 | | | | |
|
171 | | | | | |
169 | | | o changeset: 4:9bf953aa81f6 |
|
172 | | | o changeset: 4:9bf953aa81f6 | |
170 | | | | parent: 1:134bc3852ad2 |
|
173 | | | | parent: 1:134bc3852ad2 | |
171 | | | | user: test |
|
174 | | | | user: test | |
172 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
175 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
173 | | | | summary: c_dD0 |
|
176 | | | | summary: c_dD0 | |
174 | | | | |
|
177 | | | | | |
175 | o | | changeset: 3:840af1c6bc88 |
|
178 | o | | changeset: 3:840af1c6bc88 | |
176 | | | | branch: branch_A |
|
179 | | | | branch: branch_A | |
177 | | | | parent: 0:ea207398892e |
|
180 | | | | parent: 0:ea207398892e | |
178 | | | | user: test |
|
181 | | | | user: test | |
179 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
182 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
180 | | | | summary: c_aC0 |
|
183 | | | | summary: c_aC0 | |
181 | | | | |
|
184 | | | | | |
182 | | o | changeset: 2:286d02a6e2a2 |
|
185 | | o | changeset: 2:286d02a6e2a2 | |
183 | | |/ user: test |
|
186 | | |/ user: test | |
184 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
187 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
185 | | | summary: c_dB0 |
|
188 | | | summary: c_dB0 | |
186 | | | |
|
189 | | | | |
187 | | o changeset: 1:134bc3852ad2 |
|
190 | | o changeset: 1:134bc3852ad2 | |
188 | |/ user: test |
|
191 | |/ user: test | |
189 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
192 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
190 | | summary: c_dA0 |
|
193 | | summary: c_dA0 | |
191 | | |
|
194 | | | |
192 | o changeset: 0:ea207398892e |
|
195 | o changeset: 0:ea207398892e | |
193 | user: test |
|
196 | user: test | |
194 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
197 | date: Thu Jan 01 00:00:00 1970 +0000 | |
195 | summary: ROOT |
|
198 | summary: ROOT | |
196 |
|
199 | |||
197 |
|
200 | |||
198 | actual stripping |
|
201 | actual stripping | |
199 |
|
202 | |||
200 | $ hg strip --config extensions.strip= --rev 'desc("c_dH0")' |
|
203 | $ hg strip --config extensions.strip= --rev 'desc("c_dH0")' | |
201 | saved backup bundle to $TESTTMP/client/.hg/strip-backup/fe47ea669cea-a41bf5a9-backup.hg |
|
204 | saved backup bundle to $TESTTMP/client/.hg/strip-backup/fe47ea669cea-a41bf5a9-backup.hg | |
202 |
|
205 | |||
203 | Test that closing heads are ignored by default |
|
206 | Test that closing heads are ignored by default | |
204 | ----------------------------------------------- |
|
207 | ----------------------------------------------- | |
205 |
|
208 | |||
206 | $ hg up 'desc("c_aG0")' |
|
209 | $ hg up 'desc("c_aG0")' | |
207 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
210 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
208 | $ mkcommit c_aJ0 |
|
211 | $ mkcommit c_aJ0 | |
209 | created new head |
|
212 | created new head | |
210 |
|
213 | |||
211 | pushing the new head should fails |
|
214 | pushing the new head should fails | |
212 |
|
215 | |||
213 | $ hg push -f |
|
216 | $ hg push -f | |
214 | pushing to $TESTTMP/single-head-server |
|
217 | pushing to $TESTTMP/single-head-server | |
215 | searching for changes |
|
218 | searching for changes | |
216 | adding changesets |
|
219 | adding changesets | |
217 | adding manifests |
|
220 | adding manifests | |
218 | adding file changes |
|
221 | adding file changes | |
219 | transaction abort! |
|
222 | transaction abort! | |
220 | rollback completed |
|
223 | rollback completed | |
221 | abort: rejecting multiple heads on branch "branch_A" |
|
224 | abort: rejecting multiple heads on branch "branch_A" | |
222 | (2 heads: 49003e504178 468bd81ccc5d) |
|
225 | (2 heads: 49003e504178 468bd81ccc5d) | |
223 | [255] |
|
226 | [255] | |
224 |
|
227 | |||
225 |
|
228 | |||
226 | closing the head and pushing should succeed |
|
229 | closing the head and pushing should succeed | |
227 |
|
230 | |||
228 | $ mkcommit c_aK0 --close-branch |
|
231 | $ mkcommit c_aK0 --close-branch | |
229 | $ hg push -f |
|
232 | $ hg push -f | |
230 | pushing to $TESTTMP/single-head-server |
|
233 | pushing to $TESTTMP/single-head-server | |
231 | searching for changes |
|
234 | searching for changes | |
232 | adding changesets |
|
235 | adding changesets | |
233 | adding manifests |
|
236 | adding manifests | |
234 | adding file changes |
|
237 | adding file changes | |
235 | added 4 changesets with 4 changes to 4 files (-1 heads) |
|
238 | added 4 changesets with 4 changes to 4 files (-1 heads) | |
236 |
|
239 | |||
237 |
|
240 | |||
238 | Test that closing heads can be explicitly accounted for |
|
241 | Test that closing heads can be explicitly accounted for | |
239 | ------------------------------------------------------- |
|
242 | ------------------------------------------------------- | |
240 |
|
243 | |||
241 | $ cat <<EOF >> $TESTTMP/single-head-server/.hg/hgrc |
|
244 | $ cat <<EOF >> $TESTTMP/single-head-server/.hg/hgrc | |
242 | > [experimental] |
|
245 | > [experimental] | |
243 | > single-head-per-branch:account-closed-heads = yes |
|
246 | > single-head-per-branch:account-closed-heads = yes | |
244 | > EOF |
|
247 | > EOF | |
245 |
|
248 | |||
246 | $ hg up 'desc("c_aG0")' |
|
249 | $ hg up 'desc("c_aG0")' | |
247 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
250 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
248 | $ mkcommit c_aL0 |
|
251 | $ mkcommit c_aL0 | |
249 | created new head |
|
252 | created new head | |
250 | $ mkcommit c_aM0 --close-branch |
|
253 | $ mkcommit c_aM0 --close-branch | |
251 | $ hg push -f |
|
254 | $ hg push -f | |
252 | pushing to $TESTTMP/single-head-server |
|
255 | pushing to $TESTTMP/single-head-server | |
253 | searching for changes |
|
256 | searching for changes | |
254 | adding changesets |
|
257 | adding changesets | |
255 | adding manifests |
|
258 | adding manifests | |
256 | adding file changes |
|
259 | adding file changes | |
257 | transaction abort! |
|
260 | transaction abort! | |
258 | rollback completed |
|
261 | rollback completed | |
259 | abort: rejecting multiple heads on branch "branch_A" |
|
262 | abort: rejecting multiple heads on branch "branch_A" | |
260 | (3 heads: 49003e504178 5254bcccab93 42b9fe70a3c1) |
|
263 | (3 heads: 49003e504178 5254bcccab93 42b9fe70a3c1) | |
261 | [255] |
|
264 | [255] | |
262 |
|
265 | |||
263 |
|
266 | |||
264 | Test that config can be overriden as the boolean it is |
|
267 | Test that config can be overriden as the boolean it is | |
265 | ------------------------------------------------------ |
|
268 | ------------------------------------------------------ | |
266 |
|
269 | |||
267 | $ cat <<EOF >> $TESTTMP/single-head-server/.hg/hgrc |
|
270 | $ cat <<EOF >> $TESTTMP/single-head-server/.hg/hgrc | |
268 | > [experimental] |
|
271 | > [experimental] | |
269 | > single-head-per-branch = no |
|
272 | > single-head-per-branch = no | |
270 | > EOF |
|
273 | > EOF | |
271 |
|
274 | |||
272 | Because of previous test, we'll also push c_aL0 and c_aM0. |
|
275 | Because of previous test, we'll also push c_aL0 and c_aM0. | |
273 |
|
276 | |||
274 | $ hg out -T "{desc}\n" |
|
277 | $ hg out -T "{desc}\n" | |
275 | comparing with $TESTTMP/single-head-server |
|
278 | comparing with $TESTTMP/single-head-server | |
276 | searching for changes |
|
279 | searching for changes | |
277 | c_aL0 |
|
280 | c_aL0 | |
278 | c_aM0 |
|
281 | c_aM0 | |
279 |
|
282 | |||
280 | Let's make a new head and push everything. The server feedback will mention |
|
283 | Let's make a new head and push everything. The server feedback will mention | |
281 | exactly one new head because c_aM0 is closed. |
|
284 | exactly one new head because c_aM0 is closed. | |
282 |
|
285 | |||
283 | $ hg up 'desc("c_aG0")' |
|
286 | $ hg up 'desc("c_aG0")' | |
284 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
287 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
285 | $ mkcommit c_aN0 |
|
288 | $ mkcommit c_aN0 | |
286 | created new head |
|
289 | created new head | |
287 | $ hg push -f |
|
290 | $ hg push -f | |
288 | pushing to $TESTTMP/single-head-server |
|
291 | pushing to $TESTTMP/single-head-server | |
289 | searching for changes |
|
292 | searching for changes | |
290 | adding changesets |
|
293 | adding changesets | |
291 | adding manifests |
|
294 | adding manifests | |
292 | adding file changes |
|
295 | adding file changes | |
293 | added 3 changesets with 3 changes to 3 files (+1 heads) |
|
296 | added 3 changesets with 3 changes to 3 files (+1 heads) | |
294 | $ cd .. |
|
297 | $ cd .. | |
295 |
|
298 | |||
296 |
|
299 | |||
297 | Test that singe-head-per-branch can be restricted to public changes |
|
300 | Test that singe-head-per-branch can be restricted to public changes | |
298 | ------------------------------------------------------------------- |
|
301 | ------------------------------------------------------------------- | |
299 |
|
302 | |||
300 | $ hg clone -r 49003e504178 single-head-server public-only |
|
303 | $ hg clone -r 49003e504178 single-head-server public-only | |
301 | adding changesets |
|
304 | adding changesets | |
302 | adding manifests |
|
305 | adding manifests | |
303 | adding file changes |
|
306 | adding file changes | |
304 | added 9 changesets with 9 changes to 9 files |
|
307 | added 9 changesets with 9 changes to 9 files | |
305 | 1 new obsolescence markers |
|
308 | 1 new obsolescence markers | |
306 | new changesets ea207398892e:49003e504178 (9 drafts) |
|
309 | new changesets ea207398892e:49003e504178 (9 drafts) | |
307 | updating to branch branch_A |
|
310 | updating to branch branch_A | |
308 | 9 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
311 | 9 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
309 | $ cd public-only |
|
312 | $ cd public-only | |
310 | $ cat <<EOF >> .hg/hgrc |
|
313 | $ cat <<EOF >> .hg/hgrc | |
311 | > [phases] |
|
314 | > [phases] | |
312 | > publish = no |
|
315 | > publish = no | |
313 | > [experimental] |
|
316 | > [experimental] | |
314 | > single-head-per-branch = yes |
|
317 | > single-head-per-branch = yes | |
315 | > single-head-per-branch:public-changes-only = yes |
|
318 | > single-head-per-branch:public-changes-only = yes | |
316 | > EOF |
|
319 | > EOF | |
317 | > hg phase -p : |
|
320 | > hg phase -p : | |
318 | $ hg update 'desc("c_aG0")' |
|
321 | $ hg update 'desc("c_aG0")' | |
319 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
322 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
320 | $ mkcommit c_dO0 |
|
323 | $ mkcommit c_dO0 | |
321 | created new head |
|
324 | created new head | |
322 | $ hg log -G |
|
325 | $ hg log -G | |
323 | @ changeset: 9:8058fd35cc2b |
|
326 | @ changeset: 9:8058fd35cc2b | |
324 | | branch: branch_A |
|
327 | | branch: branch_A | |
325 | | tag: tip |
|
328 | | tag: tip | |
326 | | parent: 7:a33fb808fb4b |
|
329 | | parent: 7:a33fb808fb4b | |
327 | | user: test |
|
330 | | user: test | |
328 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
331 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
329 | | summary: c_dO0 |
|
332 | | summary: c_dO0 | |
330 | | |
|
333 | | | |
331 | | o changeset: 8:49003e504178 |
|
334 | | o changeset: 8:49003e504178 | |
332 | |/| branch: branch_A |
|
335 | |/| branch: branch_A | |
333 | | | parent: 7:a33fb808fb4b |
|
336 | | | parent: 7:a33fb808fb4b | |
334 | | | parent: 3:840af1c6bc88 |
|
337 | | | parent: 3:840af1c6bc88 | |
335 | | | user: test |
|
338 | | | user: test | |
336 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
339 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
337 | | | summary: c_aI0 |
|
340 | | | summary: c_aI0 | |
338 | | | |
|
341 | | | | |
339 | o | changeset: 7:a33fb808fb4b |
|
342 | o | changeset: 7:a33fb808fb4b | |
340 | | | branch: branch_A |
|
343 | | | branch: branch_A | |
341 | | | user: test |
|
344 | | | user: test | |
342 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
345 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
343 | | | summary: c_aG0 |
|
346 | | | summary: c_aG0 | |
344 | | | |
|
347 | | | | |
345 | o | changeset: 6:99a2dc242c5d |
|
348 | o | changeset: 6:99a2dc242c5d | |
346 | | | user: test |
|
349 | | | user: test | |
347 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
350 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
348 | | | summary: c_dF1 |
|
351 | | | summary: c_dF1 | |
349 | | | |
|
352 | | | | |
350 | o | changeset: 5:6ed1df20edb1 |
|
353 | o | changeset: 5:6ed1df20edb1 | |
351 | |\ \ parent: 4:9bf953aa81f6 |
|
354 | |\ \ parent: 4:9bf953aa81f6 | |
352 | | | | parent: 2:286d02a6e2a2 |
|
355 | | | | parent: 2:286d02a6e2a2 | |
353 | | | | user: test |
|
356 | | | | user: test | |
354 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
357 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
355 | | | | summary: c_dE0 |
|
358 | | | | summary: c_dE0 | |
356 | | | | |
|
359 | | | | | |
357 | | o | changeset: 4:9bf953aa81f6 |
|
360 | | o | changeset: 4:9bf953aa81f6 | |
358 | | | | parent: 1:134bc3852ad2 |
|
361 | | | | parent: 1:134bc3852ad2 | |
359 | | | | user: test |
|
362 | | | | user: test | |
360 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
363 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
361 | | | | summary: c_dD0 |
|
364 | | | | summary: c_dD0 | |
362 | | | | |
|
365 | | | | | |
363 | | | o changeset: 3:840af1c6bc88 |
|
366 | | | o changeset: 3:840af1c6bc88 | |
364 | | | | branch: branch_A |
|
367 | | | | branch: branch_A | |
365 | | | | parent: 0:ea207398892e |
|
368 | | | | parent: 0:ea207398892e | |
366 | | | | user: test |
|
369 | | | | user: test | |
367 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
370 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
368 | | | | summary: c_aC0 |
|
371 | | | | summary: c_aC0 | |
369 | | | | |
|
372 | | | | | |
370 | o | | changeset: 2:286d02a6e2a2 |
|
373 | o | | changeset: 2:286d02a6e2a2 | |
371 | |/ / user: test |
|
374 | |/ / user: test | |
372 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
375 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
373 | | | summary: c_dB0 |
|
376 | | | summary: c_dB0 | |
374 | | | |
|
377 | | | | |
375 | o | changeset: 1:134bc3852ad2 |
|
378 | o | changeset: 1:134bc3852ad2 | |
376 | |/ user: test |
|
379 | |/ user: test | |
377 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
380 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
378 | | summary: c_dA0 |
|
381 | | summary: c_dA0 | |
379 | | |
|
382 | | | |
380 | o changeset: 0:ea207398892e |
|
383 | o changeset: 0:ea207398892e | |
381 | user: test |
|
384 | user: test | |
382 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
385 | date: Thu Jan 01 00:00:00 1970 +0000 | |
383 | summary: ROOT |
|
386 | summary: ROOT | |
384 |
|
387 | |||
385 | $ hg phase -p . |
|
388 | $ hg phase -p . | |
386 | abort: rejecting multiple heads on branch "branch_A" |
|
389 | abort: rejecting multiple heads on branch "branch_A" | |
387 | (2 heads: 49003e504178 8058fd35cc2b) |
|
390 | (2 heads: 49003e504178 8058fd35cc2b) | |
388 | [255] |
|
391 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now