Show More
@@ -621,10 +621,7 b' def concludenode(repo, rev, p1, p2, comm' | |||||
621 | if commitmsg is None: |
|
621 | if commitmsg is None: | |
622 | commitmsg = ctx.description() |
|
622 | commitmsg = ctx.description() | |
623 | keepbranch = keepbranches and repo[p1].branch() != ctx.branch() |
|
623 | keepbranch = keepbranches and repo[p1].branch() != ctx.branch() | |
624 |
extra = ctx.ex |
|
624 | extra = {'rebase_source': ctx.hex()} | |
625 | if not keepbranches: |
|
|||
626 | del extra['branch'] |
|
|||
627 | extra['rebase_source'] = ctx.hex() |
|
|||
628 | if extrafn: |
|
625 | if extrafn: | |
629 | extrafn(ctx, extra) |
|
626 | extrafn(ctx, extra) | |
630 |
|
627 |
@@ -152,14 +152,6 b' stabilise' | |||||
152 | rebasing 11:c13eb81022ca "f" |
|
152 | rebasing 11:c13eb81022ca "f" | |
153 | $ hg up tip -q |
|
153 | $ hg up tip -q | |
154 |
|
154 | |||
155 | check that extra has accumulated from histedit and rebase |
|
|||
156 |
|
||||
157 | $ hg log -T '{extras % "{key}={value}\n"}\n' -r tip |
|
|||
158 | branch=default |
|
|||
159 | histedit_source=cacdfd884a9321ec4e1de275ef3949fa953a1f83 |
|
|||
160 | rebase_source=c13eb81022caa686a369223fe7f926bc4f7db576 |
|
|||
161 |
|
||||
162 |
|
||||
163 | Test dropping of changeset on the top of the stack |
|
155 | Test dropping of changeset on the top of the stack | |
164 | ------------------------------------------------------- |
|
156 | ------------------------------------------------------- | |
165 |
|
157 | |||
@@ -173,7 +165,7 b' dropped changeset to be hidden.' | |||||
173 | $ cd droplast |
|
165 | $ cd droplast | |
174 | $ hg histedit -r '40db8afa467b' --commands - << EOF |
|
166 | $ hg histedit -r '40db8afa467b' --commands - << EOF | |
175 | > pick 40db8afa467b 10 c |
|
167 | > pick 40db8afa467b 10 c | |
176 |
> drop |
|
168 | > drop b449568bf7fc 11 f | |
177 | > EOF |
|
169 | > EOF | |
178 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
170 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
179 | $ hg log -G |
|
171 | $ hg log -G | |
@@ -221,7 +213,7 b' Check that histedit respect immutability' | |||||
221 | $ hg ph -pv '.^' |
|
213 | $ hg ph -pv '.^' | |
222 | phase changed for 2 changesets |
|
214 | phase changed for 2 changesets | |
223 | $ hg log -G |
|
215 | $ hg log -G | |
224 |
@ 13: |
|
216 | @ 13:b449568bf7fc (draft) f | |
225 | | |
|
217 | | | |
226 | o 12:40db8afa467b (public) c |
|
218 | o 12:40db8afa467b (public) c | |
227 | | |
|
219 | | | |
@@ -243,17 +235,17 b' Prepare further testing' | |||||
243 | > done |
|
235 | > done | |
244 | $ hg phase --force --secret .~2 |
|
236 | $ hg phase --force --secret .~2 | |
245 | $ hg log -G |
|
237 | $ hg log -G | |
246 |
@ 18: |
|
238 | @ 18:ee118ab9fa44 (secret) k | |
247 | | |
|
239 | | | |
248 |
o 17: |
|
240 | o 17:3a6c53ee7f3d (secret) j | |
249 | | |
|
241 | | | |
250 |
o 16: |
|
242 | o 16:b605fb7503f2 (secret) i | |
251 | | |
|
243 | | | |
252 |
o 15: |
|
244 | o 15:7395e1ff83bd (draft) h | |
253 | | |
|
245 | | | |
254 |
o 14: |
|
246 | o 14:6b70183d2492 (draft) g | |
255 | | |
|
247 | | | |
256 |
o 13: |
|
248 | o 13:b449568bf7fc (draft) f | |
257 | | |
|
249 | | | |
258 | o 12:40db8afa467b (public) c |
|
250 | o 12:40db8afa467b (public) c | |
259 | | |
|
251 | | | |
@@ -271,33 +263,33 b' New-commit as draft (default)' | |||||
271 |
|
263 | |||
272 | $ cp -r base simple-draft |
|
264 | $ cp -r base simple-draft | |
273 | $ cd simple-draft |
|
265 | $ cd simple-draft | |
274 |
$ hg histedit -r ' |
|
266 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
275 |
> edit |
|
267 | > edit b449568bf7fc 11 f | |
276 |
> pick |
|
268 | > pick 6b70183d2492 12 g | |
277 |
> pick |
|
269 | > pick 7395e1ff83bd 13 h | |
278 |
> pick |
|
270 | > pick b605fb7503f2 14 i | |
279 |
> pick |
|
271 | > pick 3a6c53ee7f3d 15 j | |
280 |
> pick |
|
272 | > pick ee118ab9fa44 16 k | |
281 | > EOF |
|
273 | > EOF | |
282 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
|
274 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved | |
283 | adding f |
|
275 | adding f | |
284 |
Editing ( |
|
276 | Editing (b449568bf7fc), you may commit or record as needed now. | |
285 | (hg histedit --continue to resume) |
|
277 | (hg histedit --continue to resume) | |
286 | [1] |
|
278 | [1] | |
287 | $ echo f >> f |
|
279 | $ echo f >> f | |
288 | $ hg histedit --continue |
|
280 | $ hg histedit --continue | |
289 | $ hg log -G |
|
281 | $ hg log -G | |
290 |
@ 24:129 |
|
282 | @ 24:12e89af74238 (secret) k | |
291 | | |
|
283 | | | |
292 |
o 23: |
|
284 | o 23:636a8687b22e (secret) j | |
293 | | |
|
285 | | | |
294 |
o 22: |
|
286 | o 22:ccaf0a38653f (secret) i | |
295 | | |
|
287 | | | |
296 |
o 21: |
|
288 | o 21:11a89d1c2613 (draft) h | |
297 | | |
|
289 | | | |
298 |
o 20: |
|
290 | o 20:c1dec7ca82ea (draft) g | |
299 | | |
|
291 | | | |
300 |
o 19: |
|
292 | o 19:087281e68428 (draft) f | |
301 | | |
|
293 | | | |
302 | o 12:40db8afa467b (public) c |
|
294 | o 12:40db8afa467b (public) c | |
303 | | |
|
295 | | | |
@@ -314,33 +306,33 b' New-commit as draft (default)' | |||||
314 | > [phases] |
|
306 | > [phases] | |
315 | > new-commit=secret |
|
307 | > new-commit=secret | |
316 | > EOF |
|
308 | > EOF | |
317 |
$ hg histedit -r ' |
|
309 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
318 |
> edit |
|
310 | > edit b449568bf7fc 11 f | |
319 |
> pick |
|
311 | > pick 6b70183d2492 12 g | |
320 |
> pick |
|
312 | > pick 7395e1ff83bd 13 h | |
321 |
> pick |
|
313 | > pick b605fb7503f2 14 i | |
322 |
> pick |
|
314 | > pick 3a6c53ee7f3d 15 j | |
323 |
> pick |
|
315 | > pick ee118ab9fa44 16 k | |
324 | > EOF |
|
316 | > EOF | |
325 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
|
317 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved | |
326 | adding f |
|
318 | adding f | |
327 |
Editing ( |
|
319 | Editing (b449568bf7fc), you may commit or record as needed now. | |
328 | (hg histedit --continue to resume) |
|
320 | (hg histedit --continue to resume) | |
329 | [1] |
|
321 | [1] | |
330 | $ echo f >> f |
|
322 | $ echo f >> f | |
331 | $ hg histedit --continue |
|
323 | $ hg histedit --continue | |
332 | $ hg log -G |
|
324 | $ hg log -G | |
333 |
@ 24:129 |
|
325 | @ 24:12e89af74238 (secret) k | |
334 | | |
|
326 | | | |
335 |
o 23: |
|
327 | o 23:636a8687b22e (secret) j | |
336 | | |
|
328 | | | |
337 |
o 22: |
|
329 | o 22:ccaf0a38653f (secret) i | |
338 | | |
|
330 | | | |
339 |
o 21: |
|
331 | o 21:11a89d1c2613 (draft) h | |
340 | | |
|
332 | | | |
341 |
o 20: |
|
333 | o 20:c1dec7ca82ea (draft) g | |
342 | | |
|
334 | | | |
343 |
o 19: |
|
335 | o 19:087281e68428 (draft) f | |
344 | | |
|
336 | | | |
345 | o 12:40db8afa467b (public) c |
|
337 | o 12:40db8afa467b (public) c | |
346 | | |
|
338 | | | |
@@ -357,27 +349,27 b' It seems more important to present the s' | |||||
357 |
|
349 | |||
358 | $ cp -r base reorder |
|
350 | $ cp -r base reorder | |
359 | $ cd reorder |
|
351 | $ cd reorder | |
360 |
$ hg histedit -r ' |
|
352 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
361 |
> pick |
|
353 | > pick b449568bf7fc 11 f | |
362 |
> pick |
|
354 | > pick 3a6c53ee7f3d 15 j | |
363 |
> pick |
|
355 | > pick 6b70183d2492 12 g | |
364 |
> pick |
|
356 | > pick b605fb7503f2 14 i | |
365 |
> pick |
|
357 | > pick 7395e1ff83bd 13 h | |
366 |
> pick |
|
358 | > pick ee118ab9fa44 16 k | |
367 | > EOF |
|
359 | > EOF | |
368 | 0 files updated, 0 files merged, 5 files removed, 0 files unresolved |
|
360 | 0 files updated, 0 files merged, 5 files removed, 0 files unresolved | |
369 | $ hg log -G |
|
361 | $ hg log -G | |
370 |
@ 23: |
|
362 | @ 23:558246857888 (secret) k | |
371 | | |
|
363 | | | |
372 |
o 22: |
|
364 | o 22:28bd44768535 (secret) h | |
373 | | |
|
365 | | | |
374 |
o 21: |
|
366 | o 21:d5395202aeb9 (secret) i | |
375 | | |
|
367 | | | |
376 |
o 20: |
|
368 | o 20:21edda8e341b (secret) g | |
377 | | |
|
369 | | | |
378 |
o 19: |
|
370 | o 19:5ab64f3a4832 (secret) j | |
379 | | |
|
371 | | | |
380 |
o 13: |
|
372 | o 13:b449568bf7fc (draft) f | |
381 | | |
|
373 | | | |
382 | o 12:40db8afa467b (public) c |
|
374 | o 12:40db8afa467b (public) c | |
383 | | |
|
375 | | | |
@@ -399,13 +391,13 b' Note that there is a few reordering in t' | |||||
399 | > [phases] |
|
391 | > [phases] | |
400 | > new-commit=secret |
|
392 | > new-commit=secret | |
401 | > EOF |
|
393 | > EOF | |
402 |
$ hg histedit -r ' |
|
394 | $ hg histedit -r 'b449568bf7fc' --commands - << EOF | |
403 |
> pick |
|
395 | > pick 7395e1ff83bd 13 h | |
404 |
> fold |
|
396 | > fold b449568bf7fc 11 f | |
405 |
> pick |
|
397 | > pick 6b70183d2492 12 g | |
406 |
> fold |
|
398 | > fold 3a6c53ee7f3d 15 j | |
407 |
> pick |
|
399 | > pick b605fb7503f2 14 i | |
408 |
> fold |
|
400 | > fold ee118ab9fa44 16 k | |
409 | > EOF |
|
401 | > EOF | |
410 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
|
402 | 0 files updated, 0 files merged, 6 files removed, 0 files unresolved | |
411 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
403 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
@@ -415,29 +407,29 b' Note that there is a few reordering in t' | |||||
415 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
407 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
416 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
408 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
417 | $ hg log -G |
|
409 | $ hg log -G | |
418 |
@ 27: |
|
410 | @ 27:f9daec13fb98 (secret) i | |
419 | | |
|
411 | | | |
420 |
o 24: |
|
412 | o 24:49807617f46a (secret) g | |
421 | | |
|
413 | | | |
422 |
o 21: |
|
414 | o 21:050280826e04 (draft) h | |
423 | | |
|
415 | | | |
424 | o 12:40db8afa467b (public) c |
|
416 | o 12:40db8afa467b (public) c | |
425 | | |
|
417 | | | |
426 | o 0:cb9a9f314b8b (public) a |
|
418 | o 0:cb9a9f314b8b (public) a | |
427 |
|
419 | |||
428 | $ hg co 3de6dbab1b62 |
|
420 | $ hg co 49807617f46a | |
429 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
421 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
430 | $ echo wat >> wat |
|
422 | $ echo wat >> wat | |
431 | $ hg add wat |
|
423 | $ hg add wat | |
432 | $ hg ci -m 'add wat' |
|
424 | $ hg ci -m 'add wat' | |
433 | created new head |
|
425 | created new head | |
434 |
$ hg merge |
|
426 | $ hg merge f9daec13fb98 | |
435 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
427 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
436 | (branch merge, don't forget to commit) |
|
428 | (branch merge, don't forget to commit) | |
437 | $ hg ci -m 'merge' |
|
429 | $ hg ci -m 'merge' | |
438 | $ echo not wat > wat |
|
430 | $ echo not wat > wat | |
439 | $ hg ci -m 'modify wat' |
|
431 | $ hg ci -m 'modify wat' | |
440 |
$ hg histedit |
|
432 | $ hg histedit 050280826e04 | |
441 | abort: cannot edit history that contains merges |
|
433 | abort: cannot edit history that contains merges | |
442 | [255] |
|
434 | [255] | |
443 | $ cd .. |
|
435 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now