##// END OF EJS Templates
test-rebase-conflicts: add a test case about turning obsstore on and off...
Jun Wu -
r33034:181ca348 default
parent child Browse files
Show More
@@ -1,365 +1,413 b''
1 $ cat >> $HGRCPATH <<EOF
1 $ cat >> $HGRCPATH <<EOF
2 > [format]
2 > [format]
3 > usegeneraldelta=yes
3 > usegeneraldelta=yes
4 > [extensions]
4 > [extensions]
5 > rebase=
5 > rebase=
6 > drawdag=$TESTDIR/drawdag.py
6 >
7 >
7 > [phases]
8 > [phases]
8 > publish=False
9 > publish=False
9 >
10 >
10 > [alias]
11 > [alias]
11 > tglog = log -G --template "{rev}:{phase} '{desc}' {branches} {bookmarks}\n"
12 > tglog = log -G --template "{rev}:{phase} '{desc}' {branches} {bookmarks}\n"
12 > EOF
13 > EOF
13
14
14 $ hg init a
15 $ hg init a
15 $ cd a
16 $ cd a
16 $ echo c1 >common
17 $ echo c1 >common
17 $ hg add common
18 $ hg add common
18 $ hg ci -m C1
19 $ hg ci -m C1
19
20
20 $ echo c2 >>common
21 $ echo c2 >>common
21 $ hg ci -m C2
22 $ hg ci -m C2
22
23
23 $ echo c3 >>common
24 $ echo c3 >>common
24 $ hg ci -m C3
25 $ hg ci -m C3
25
26
26 $ hg up -q -C 1
27 $ hg up -q -C 1
27
28
28 $ echo l1 >>extra
29 $ echo l1 >>extra
29 $ hg add extra
30 $ hg add extra
30 $ hg ci -m L1
31 $ hg ci -m L1
31 created new head
32 created new head
32
33
33 $ sed -e 's/c2/l2/' common > common.new
34 $ sed -e 's/c2/l2/' common > common.new
34 $ mv common.new common
35 $ mv common.new common
35 $ hg ci -m L2
36 $ hg ci -m L2
36
37
37 $ echo l3 >> extra2
38 $ echo l3 >> extra2
38 $ hg add extra2
39 $ hg add extra2
39 $ hg ci -m L3
40 $ hg ci -m L3
40 $ hg bookmark mybook
41 $ hg bookmark mybook
41
42
42 $ hg phase --force --secret 4
43 $ hg phase --force --secret 4
43
44
44 $ hg tglog
45 $ hg tglog
45 @ 5:secret 'L3' mybook
46 @ 5:secret 'L3' mybook
46 |
47 |
47 o 4:secret 'L2'
48 o 4:secret 'L2'
48 |
49 |
49 o 3:draft 'L1'
50 o 3:draft 'L1'
50 |
51 |
51 | o 2:draft 'C3'
52 | o 2:draft 'C3'
52 |/
53 |/
53 o 1:draft 'C2'
54 o 1:draft 'C2'
54 |
55 |
55 o 0:draft 'C1'
56 o 0:draft 'C1'
56
57
57 Try to call --continue:
58 Try to call --continue:
58
59
59 $ hg rebase --continue
60 $ hg rebase --continue
60 abort: no rebase in progress
61 abort: no rebase in progress
61 [255]
62 [255]
62
63
63 Conflicting rebase:
64 Conflicting rebase:
64
65
65 $ hg rebase -s 3 -d 2
66 $ hg rebase -s 3 -d 2
66 rebasing 3:3163e20567cc "L1"
67 rebasing 3:3163e20567cc "L1"
67 rebasing 4:46f0b057b5c0 "L2"
68 rebasing 4:46f0b057b5c0 "L2"
68 merging common
69 merging common
69 warning: conflicts while merging common! (edit, then use 'hg resolve --mark')
70 warning: conflicts while merging common! (edit, then use 'hg resolve --mark')
70 unresolved conflicts (see hg resolve, then hg rebase --continue)
71 unresolved conflicts (see hg resolve, then hg rebase --continue)
71 [1]
72 [1]
72
73
73 Try to continue without solving the conflict:
74 Try to continue without solving the conflict:
74
75
75 $ hg rebase --continue
76 $ hg rebase --continue
76 abort: unresolved merge conflicts (see 'hg help resolve')
77 abort: unresolved merge conflicts (see 'hg help resolve')
77 [255]
78 [255]
78
79
79 Conclude rebase:
80 Conclude rebase:
80
81
81 $ echo 'resolved merge' >common
82 $ echo 'resolved merge' >common
82 $ hg resolve -m common
83 $ hg resolve -m common
83 (no more unresolved files)
84 (no more unresolved files)
84 continue: hg rebase --continue
85 continue: hg rebase --continue
85 $ hg rebase --continue
86 $ hg rebase --continue
86 already rebased 3:3163e20567cc "L1" as 3e046f2ecedb
87 already rebased 3:3163e20567cc "L1" as 3e046f2ecedb
87 rebasing 4:46f0b057b5c0 "L2"
88 rebasing 4:46f0b057b5c0 "L2"
88 rebasing 5:8029388f38dc "L3" (mybook)
89 rebasing 5:8029388f38dc "L3" (mybook)
89 saved backup bundle to $TESTTMP/a/.hg/strip-backup/3163e20567cc-5ca4656e-backup.hg (glob)
90 saved backup bundle to $TESTTMP/a/.hg/strip-backup/3163e20567cc-5ca4656e-backup.hg (glob)
90
91
91 $ hg tglog
92 $ hg tglog
92 @ 5:secret 'L3' mybook
93 @ 5:secret 'L3' mybook
93 |
94 |
94 o 4:secret 'L2'
95 o 4:secret 'L2'
95 |
96 |
96 o 3:draft 'L1'
97 o 3:draft 'L1'
97 |
98 |
98 o 2:draft 'C3'
99 o 2:draft 'C3'
99 |
100 |
100 o 1:draft 'C2'
101 o 1:draft 'C2'
101 |
102 |
102 o 0:draft 'C1'
103 o 0:draft 'C1'
103
104
104 Check correctness:
105 Check correctness:
105
106
106 $ hg cat -r 0 common
107 $ hg cat -r 0 common
107 c1
108 c1
108
109
109 $ hg cat -r 1 common
110 $ hg cat -r 1 common
110 c1
111 c1
111 c2
112 c2
112
113
113 $ hg cat -r 2 common
114 $ hg cat -r 2 common
114 c1
115 c1
115 c2
116 c2
116 c3
117 c3
117
118
118 $ hg cat -r 3 common
119 $ hg cat -r 3 common
119 c1
120 c1
120 c2
121 c2
121 c3
122 c3
122
123
123 $ hg cat -r 4 common
124 $ hg cat -r 4 common
124 resolved merge
125 resolved merge
125
126
126 $ hg cat -r 5 common
127 $ hg cat -r 5 common
127 resolved merge
128 resolved merge
128
129
129 Bookmark stays active after --continue
130 Bookmark stays active after --continue
130 $ hg bookmarks
131 $ hg bookmarks
131 * mybook 5:d67b21408fc0
132 * mybook 5:d67b21408fc0
132
133
133 $ cd ..
134 $ cd ..
134
135
135 Check that the right ancestors is used while rebasing a merge (issue4041)
136 Check that the right ancestors is used while rebasing a merge (issue4041)
136
137
137 $ hg clone "$TESTDIR/bundles/issue4041.hg" issue4041
138 $ hg clone "$TESTDIR/bundles/issue4041.hg" issue4041
138 requesting all changes
139 requesting all changes
139 adding changesets
140 adding changesets
140 adding manifests
141 adding manifests
141 adding file changes
142 adding file changes
142 added 11 changesets with 8 changes to 3 files (+1 heads)
143 added 11 changesets with 8 changes to 3 files (+1 heads)
143 updating to branch default
144 updating to branch default
144 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
145 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
145 $ cd issue4041
146 $ cd issue4041
146 $ hg log -G
147 $ hg log -G
147 o changeset: 10:2f2496ddf49d
148 o changeset: 10:2f2496ddf49d
148 |\ branch: f1
149 |\ branch: f1
149 | | tag: tip
150 | | tag: tip
150 | | parent: 7:4c9fbe56a16f
151 | | parent: 7:4c9fbe56a16f
151 | | parent: 9:e31216eec445
152 | | parent: 9:e31216eec445
152 | | user: szhang
153 | | user: szhang
153 | | date: Thu Sep 05 12:59:39 2013 -0400
154 | | date: Thu Sep 05 12:59:39 2013 -0400
154 | | summary: merge
155 | | summary: merge
155 | |
156 | |
156 | o changeset: 9:e31216eec445
157 | o changeset: 9:e31216eec445
157 | | branch: f1
158 | | branch: f1
158 | | user: szhang
159 | | user: szhang
159 | | date: Thu Sep 05 12:59:10 2013 -0400
160 | | date: Thu Sep 05 12:59:10 2013 -0400
160 | | summary: more changes to f1
161 | | summary: more changes to f1
161 | |
162 | |
162 | o changeset: 8:8e4e2c1a07ae
163 | o changeset: 8:8e4e2c1a07ae
163 | |\ branch: f1
164 | |\ branch: f1
164 | | | parent: 2:4bc80088dc6b
165 | | | parent: 2:4bc80088dc6b
165 | | | parent: 6:400110238667
166 | | | parent: 6:400110238667
166 | | | user: szhang
167 | | | user: szhang
167 | | | date: Thu Sep 05 12:57:59 2013 -0400
168 | | | date: Thu Sep 05 12:57:59 2013 -0400
168 | | | summary: bad merge
169 | | | summary: bad merge
169 | | |
170 | | |
170 o | | changeset: 7:4c9fbe56a16f
171 o | | changeset: 7:4c9fbe56a16f
171 |/ / branch: f1
172 |/ / branch: f1
172 | | parent: 2:4bc80088dc6b
173 | | parent: 2:4bc80088dc6b
173 | | user: szhang
174 | | user: szhang
174 | | date: Thu Sep 05 12:54:00 2013 -0400
175 | | date: Thu Sep 05 12:54:00 2013 -0400
175 | | summary: changed f1
176 | | summary: changed f1
176 | |
177 | |
177 | o changeset: 6:400110238667
178 | o changeset: 6:400110238667
178 | | branch: f2
179 | | branch: f2
179 | | parent: 4:12e8ec6bb010
180 | | parent: 4:12e8ec6bb010
180 | | user: szhang
181 | | user: szhang
181 | | date: Tue Sep 03 13:58:02 2013 -0400
182 | | date: Tue Sep 03 13:58:02 2013 -0400
182 | | summary: changed f2 on f2
183 | | summary: changed f2 on f2
183 | |
184 | |
184 | | @ changeset: 5:d79e2059b5c0
185 | | @ changeset: 5:d79e2059b5c0
185 | | | parent: 3:8a951942e016
186 | | | parent: 3:8a951942e016
186 | | | user: szhang
187 | | | user: szhang
187 | | | date: Tue Sep 03 13:57:39 2013 -0400
188 | | | date: Tue Sep 03 13:57:39 2013 -0400
188 | | | summary: changed f2 on default
189 | | | summary: changed f2 on default
189 | | |
190 | | |
190 | o | changeset: 4:12e8ec6bb010
191 | o | changeset: 4:12e8ec6bb010
191 | |/ branch: f2
192 | |/ branch: f2
192 | | user: szhang
193 | | user: szhang
193 | | date: Tue Sep 03 13:57:18 2013 -0400
194 | | date: Tue Sep 03 13:57:18 2013 -0400
194 | | summary: created f2 branch
195 | | summary: created f2 branch
195 | |
196 | |
196 | o changeset: 3:8a951942e016
197 | o changeset: 3:8a951942e016
197 | | parent: 0:24797d4f68de
198 | | parent: 0:24797d4f68de
198 | | user: szhang
199 | | user: szhang
199 | | date: Tue Sep 03 13:57:11 2013 -0400
200 | | date: Tue Sep 03 13:57:11 2013 -0400
200 | | summary: added f2.txt
201 | | summary: added f2.txt
201 | |
202 | |
202 o | changeset: 2:4bc80088dc6b
203 o | changeset: 2:4bc80088dc6b
203 | | branch: f1
204 | | branch: f1
204 | | user: szhang
205 | | user: szhang
205 | | date: Tue Sep 03 13:56:20 2013 -0400
206 | | date: Tue Sep 03 13:56:20 2013 -0400
206 | | summary: added f1.txt
207 | | summary: added f1.txt
207 | |
208 | |
208 o | changeset: 1:ef53c9e6b608
209 o | changeset: 1:ef53c9e6b608
209 |/ branch: f1
210 |/ branch: f1
210 | user: szhang
211 | user: szhang
211 | date: Tue Sep 03 13:55:26 2013 -0400
212 | date: Tue Sep 03 13:55:26 2013 -0400
212 | summary: created f1 branch
213 | summary: created f1 branch
213 |
214 |
214 o changeset: 0:24797d4f68de
215 o changeset: 0:24797d4f68de
215 user: szhang
216 user: szhang
216 date: Tue Sep 03 13:55:08 2013 -0400
217 date: Tue Sep 03 13:55:08 2013 -0400
217 summary: added default.txt
218 summary: added default.txt
218
219
219 $ hg rebase -s9 -d2 --debug # use debug to really check merge base used
220 $ hg rebase -s9 -d2 --debug # use debug to really check merge base used
220 rebase onto 4bc80088dc6b starting from e31216eec445
221 rebase onto 4bc80088dc6b starting from e31216eec445
221 rebase status stored
222 rebase status stored
222 ignoring null merge rebase of 3
223 ignoring null merge rebase of 3
223 ignoring null merge rebase of 4
224 ignoring null merge rebase of 4
224 ignoring null merge rebase of 6
225 ignoring null merge rebase of 6
225 ignoring null merge rebase of 8
226 ignoring null merge rebase of 8
226 rebasing 9:e31216eec445 "more changes to f1"
227 rebasing 9:e31216eec445 "more changes to f1"
227 future parents are 2 and -1
228 future parents are 2 and -1
228 update to 2:4bc80088dc6b
229 update to 2:4bc80088dc6b
229 resolving manifests
230 resolving manifests
230 branchmerge: False, force: True, partial: False
231 branchmerge: False, force: True, partial: False
231 ancestor: d79e2059b5c0+, local: d79e2059b5c0+, remote: 4bc80088dc6b
232 ancestor: d79e2059b5c0+, local: d79e2059b5c0+, remote: 4bc80088dc6b
232 f2.txt: other deleted -> r
233 f2.txt: other deleted -> r
233 removing f2.txt
234 removing f2.txt
234 f1.txt: remote created -> g
235 f1.txt: remote created -> g
235 getting f1.txt
236 getting f1.txt
236 merge against 9:e31216eec445
237 merge against 9:e31216eec445
237 detach base 8:8e4e2c1a07ae
238 detach base 8:8e4e2c1a07ae
238 searching for copies back to rev 3
239 searching for copies back to rev 3
239 unmatched files in other (from topological common ancestor):
240 unmatched files in other (from topological common ancestor):
240 f2.txt
241 f2.txt
241 resolving manifests
242 resolving manifests
242 branchmerge: True, force: True, partial: False
243 branchmerge: True, force: True, partial: False
243 ancestor: 8e4e2c1a07ae, local: 4bc80088dc6b+, remote: e31216eec445
244 ancestor: 8e4e2c1a07ae, local: 4bc80088dc6b+, remote: e31216eec445
244 f1.txt: remote is newer -> g
245 f1.txt: remote is newer -> g
245 getting f1.txt
246 getting f1.txt
246 committing files:
247 committing files:
247 f1.txt
248 f1.txt
248 committing manifest
249 committing manifest
249 committing changelog
250 committing changelog
250 rebased as 19c888675e13
251 rebased as 19c888675e13
251 rebasing 10:2f2496ddf49d "merge" (tip)
252 rebasing 10:2f2496ddf49d "merge" (tip)
252 future parents are 11 and 7
253 future parents are 11 and 7
253 already in destination
254 already in destination
254 merge against 10:2f2496ddf49d
255 merge against 10:2f2496ddf49d
255 detach base 9:e31216eec445
256 detach base 9:e31216eec445
256 searching for copies back to rev 3
257 searching for copies back to rev 3
257 unmatched files in other (from topological common ancestor):
258 unmatched files in other (from topological common ancestor):
258 f2.txt
259 f2.txt
259 resolving manifests
260 resolving manifests
260 branchmerge: True, force: True, partial: False
261 branchmerge: True, force: True, partial: False
261 ancestor: e31216eec445, local: 19c888675e13+, remote: 2f2496ddf49d
262 ancestor: e31216eec445, local: 19c888675e13+, remote: 2f2496ddf49d
262 f1.txt: remote is newer -> g
263 f1.txt: remote is newer -> g
263 getting f1.txt
264 getting f1.txt
264 committing files:
265 committing files:
265 f1.txt
266 f1.txt
266 committing manifest
267 committing manifest
267 committing changelog
268 committing changelog
268 rebased as 2a7f09cac94c
269 rebased as 2a7f09cac94c
269 rebase merging completed
270 rebase merging completed
270 rebase status stored
271 rebase status stored
271 updating the branch cache
272 updating the branch cache
272 update back to initial working directory parent
273 update back to initial working directory parent
273 resolving manifests
274 resolving manifests
274 branchmerge: False, force: False, partial: False
275 branchmerge: False, force: False, partial: False
275 ancestor: 2a7f09cac94c, local: 2a7f09cac94c+, remote: d79e2059b5c0
276 ancestor: 2a7f09cac94c, local: 2a7f09cac94c+, remote: d79e2059b5c0
276 f1.txt: other deleted -> r
277 f1.txt: other deleted -> r
277 removing f1.txt
278 removing f1.txt
278 f2.txt: remote created -> g
279 f2.txt: remote created -> g
279 getting f2.txt
280 getting f2.txt
280 2 changesets found
281 2 changesets found
281 list of changesets:
282 list of changesets:
282 e31216eec445e44352c5f01588856059466a24c9
283 e31216eec445e44352c5f01588856059466a24c9
283 2f2496ddf49d69b5ef23ad8cf9fb2e0e4faf0ac2
284 2f2496ddf49d69b5ef23ad8cf9fb2e0e4faf0ac2
284 bundle2-output-bundle: "HG20", (1 params) 2 parts total
285 bundle2-output-bundle: "HG20", (1 params) 2 parts total
285 bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload
286 bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload
286 bundle2-output-part: "phase-heads" 24 bytes payload
287 bundle2-output-part: "phase-heads" 24 bytes payload
287 saved backup bundle to $TESTTMP/issue4041/.hg/strip-backup/e31216eec445-15f7a814-backup.hg (glob)
288 saved backup bundle to $TESTTMP/issue4041/.hg/strip-backup/e31216eec445-15f7a814-backup.hg (glob)
288 3 changesets found
289 3 changesets found
289 list of changesets:
290 list of changesets:
290 4c9fbe56a16f30c0d5dcc40ec1a97bbe3325209c
291 4c9fbe56a16f30c0d5dcc40ec1a97bbe3325209c
291 19c888675e133ab5dff84516926a65672eaf04d9
292 19c888675e133ab5dff84516926a65672eaf04d9
292 2a7f09cac94c7f4b73ebd5cd1a62d3b2e8e336bf
293 2a7f09cac94c7f4b73ebd5cd1a62d3b2e8e336bf
293 bundle2-output-bundle: "HG20", 2 parts total
294 bundle2-output-bundle: "HG20", 2 parts total
294 bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload
295 bundle2-output-part: "changegroup" (params: 1 mandatory 1 advisory) streamed payload
295 bundle2-output-part: "phase-heads" 24 bytes payload
296 bundle2-output-part: "phase-heads" 24 bytes payload
296 adding branch
297 adding branch
297 bundle2-input-bundle: with-transaction
298 bundle2-input-bundle: with-transaction
298 bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported
299 bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported
299 adding changesets
300 adding changesets
300 add changeset 4c9fbe56a16f
301 add changeset 4c9fbe56a16f
301 add changeset 19c888675e13
302 add changeset 19c888675e13
302 add changeset 2a7f09cac94c
303 add changeset 2a7f09cac94c
303 adding manifests
304 adding manifests
304 adding file changes
305 adding file changes
305 adding f1.txt revisions
306 adding f1.txt revisions
306 added 2 changesets with 2 changes to 1 files
307 added 2 changesets with 2 changes to 1 files
307 bundle2-input-part: total payload size 1686
308 bundle2-input-part: total payload size 1686
308 bundle2-input-part: "phase-heads" supported
309 bundle2-input-part: "phase-heads" supported
309 bundle2-input-part: total payload size 24
310 bundle2-input-part: total payload size 24
310 bundle2-input-bundle: 1 parts total
311 bundle2-input-bundle: 1 parts total
311 updating the branch cache
312 updating the branch cache
312 invalid branchheads cache (served): tip differs
313 invalid branchheads cache (served): tip differs
313 rebase completed
314 rebase completed
314
315
315 Test minimization of merge conflicts
316 Test minimization of merge conflicts
316 $ hg up -q null
317 $ hg up -q null
317 $ echo a > a
318 $ echo a > a
318 $ hg add a
319 $ hg add a
319 $ hg commit -q -m 'a'
320 $ hg commit -q -m 'a'
320 $ echo b >> a
321 $ echo b >> a
321 $ hg commit -q -m 'ab'
322 $ hg commit -q -m 'ab'
322 $ hg bookmark ab
323 $ hg bookmark ab
323 $ hg up -q '.^'
324 $ hg up -q '.^'
324 $ echo b >> a
325 $ echo b >> a
325 $ echo c >> a
326 $ echo c >> a
326 $ hg commit -q -m 'abc'
327 $ hg commit -q -m 'abc'
327 $ hg rebase -s 7bc217434fc1 -d ab --keep
328 $ hg rebase -s 7bc217434fc1 -d ab --keep
328 rebasing 13:7bc217434fc1 "abc" (tip)
329 rebasing 13:7bc217434fc1 "abc" (tip)
329 merging a
330 merging a
330 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
331 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
331 unresolved conflicts (see hg resolve, then hg rebase --continue)
332 unresolved conflicts (see hg resolve, then hg rebase --continue)
332 [1]
333 [1]
333 $ hg diff
334 $ hg diff
334 diff -r 328e4ab1f7cc a
335 diff -r 328e4ab1f7cc a
335 --- a/a Thu Jan 01 00:00:00 1970 +0000
336 --- a/a Thu Jan 01 00:00:00 1970 +0000
336 +++ b/a * (glob)
337 +++ b/a * (glob)
337 @@ -1,2 +1,6 @@
338 @@ -1,2 +1,6 @@
338 a
339 a
339 b
340 b
340 +<<<<<<< dest: 328e4ab1f7cc ab - test: ab
341 +<<<<<<< dest: 328e4ab1f7cc ab - test: ab
341 +=======
342 +=======
342 +c
343 +c
343 +>>>>>>> source: 7bc217434fc1 - test: abc
344 +>>>>>>> source: 7bc217434fc1 - test: abc
344 $ hg rebase --abort
345 $ hg rebase --abort
345 rebase aborted
346 rebase aborted
346 $ hg up -q -C 7bc217434fc1
347 $ hg up -q -C 7bc217434fc1
347 $ hg rebase -s . -d ab --keep -t internal:merge3
348 $ hg rebase -s . -d ab --keep -t internal:merge3
348 rebasing 13:7bc217434fc1 "abc" (tip)
349 rebasing 13:7bc217434fc1 "abc" (tip)
349 merging a
350 merging a
350 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
351 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
351 unresolved conflicts (see hg resolve, then hg rebase --continue)
352 unresolved conflicts (see hg resolve, then hg rebase --continue)
352 [1]
353 [1]
353 $ hg diff
354 $ hg diff
354 diff -r 328e4ab1f7cc a
355 diff -r 328e4ab1f7cc a
355 --- a/a Thu Jan 01 00:00:00 1970 +0000
356 --- a/a Thu Jan 01 00:00:00 1970 +0000
356 +++ b/a * (glob)
357 +++ b/a * (glob)
357 @@ -1,2 +1,8 @@
358 @@ -1,2 +1,8 @@
358 a
359 a
359 +<<<<<<< dest: 328e4ab1f7cc ab - test: ab
360 +<<<<<<< dest: 328e4ab1f7cc ab - test: ab
360 b
361 b
361 +||||||| base
362 +||||||| base
362 +=======
363 +=======
363 +b
364 +b
364 +c
365 +c
365 +>>>>>>> source: 7bc217434fc1 - test: abc
366 +>>>>>>> source: 7bc217434fc1 - test: abc
367
368 Test rebase with obsstore turned on and off (issue5606)
369
370 $ cd $TESTTMP
371 $ hg init b
372 $ cd b
373 $ hg debugdrawdag <<'EOS'
374 > D
375 > |
376 > C
377 > |
378 > B E
379 > |/
380 > A
381 > EOS
382
383 $ hg update E -q
384 $ echo 3 > B
385 $ hg commit --amend -m E -A B -q
386 $ hg rebase -r B+D -d . --config experimental.evolution=all
387 rebasing 1:112478962961 "B" (B)
388 merging B
389 warning: conflicts while merging B! (edit, then use 'hg resolve --mark')
390 unresolved conflicts (see hg resolve, then hg rebase --continue)
391 [1]
392
393 $ echo 4 > B
394 $ hg resolve -m
395 (no more unresolved files)
396 continue: hg rebase --continue
397 $ hg rebase --continue --config experimental.evolution=none
398 rebasing 1:112478962961 "B" (B)
399 not rebasing ignored 2:26805aba1e60 "C" (C)
400 rebasing 3:f585351a92f8 "D" (D)
401 saved backup bundle to $TESTTMP/b/.hg/strip-backup/f585351a92f8-cb2a9b47-backup.hg (glob)
402
403 $ rm .hg/localtags
404 $ hg tglog
405 o 3:draft 'D'
406 |
407 o 2:draft 'B'
408 |
409 @ 1:draft 'E'
410 |
411 o 0:draft 'A'
412
413 Note the above graph is wrong since C got stripped incorrectly.
General Comments 0
You need to be logged in to leave comments. Login now