396 marked working directory as branch new-branch |
396 marked working directory as branch new-branch |
397 (branches are permanent and global, did you want a bookmark?) |
397 (branches are permanent and global, did you want a bookmark?) |
398 $ hg commit -m "empty" |
398 $ hg commit -m "empty" |
399 $ hg split |
399 $ hg split |
400 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
400 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
401 |
|
402 Check that split keeps the right topic |
|
403 |
|
404 $ hg up -r tip |
|
405 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
406 |
|
407 Add topic to the hgrc |
|
408 |
|
409 $ echo "[extensions]" >> $HGRCPATH |
|
410 $ echo "topic=$(echo $(dirname $TESTDIR))/hgext3rd/topic/" >> $HGRCPATH |
|
411 $ hg topic mytopic |
|
412 $ echo babar > babar |
|
413 $ echo celeste > celeste |
|
414 $ hg add babar celeste |
|
415 $ hg commit -m "Works on mytopic" babar celeste --user victor |
|
416 $ hg log -r . |
|
417 changeset: 21:26f72cfaf036 |
|
418 branch: new-branch |
|
419 tag: tip |
|
420 topic: mytopic |
|
421 user: victor |
|
422 date: Thu Jan 01 00:00:00 1970 +0000 |
|
423 summary: Works on mytopic |
|
424 |
|
425 $ hg summary |
|
426 parent: 21:26f72cfaf036 tip |
|
427 Works on mytopic |
|
428 branch: new-branch |
|
429 commit: 2 unknown (clean) |
|
430 update: (current) |
|
431 phases: 9 draft |
|
432 topic: mytopic |
|
433 |
|
434 Split it |
|
435 |
|
436 $ hg split -U << EOF |
|
437 > Y |
|
438 > Y |
|
439 > N |
|
440 > Y |
|
441 > Y |
|
442 > Y |
|
443 > EOF |
|
444 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
445 adding babar |
|
446 adding celeste |
|
447 diff --git a/babar b/babar |
|
448 new file mode 100644 |
|
449 examine changes to 'babar'? [Ynesfdaq?] Y |
|
450 |
|
451 @@ -0,0 +1,1 @@ |
|
452 +babar |
|
453 record change 1/2 to 'babar'? [Ynesfdaq?] Y |
|
454 |
|
455 diff --git a/celeste b/celeste |
|
456 new file mode 100644 |
|
457 examine changes to 'celeste'? [Ynesfdaq?] N |
|
458 |
|
459 Done splitting? [yN] Y |
|
460 diff --git a/celeste b/celeste |
|
461 new file mode 100644 |
|
462 examine changes to 'celeste'? [Ynesfdaq?] Y |
|
463 |
|
464 @@ -0,0 +1,1 @@ |
|
465 +celeste |
|
466 record this change to 'celeste'? [Ynesfdaq?] Y |
|
467 |
|
468 no more change to split |
|
469 |
|
470 Check that the topic is still here |
|
471 |
|
472 $ hg log -r "tip~1::" |
|
473 changeset: 22:addcf498f19e |
|
474 branch: new-branch |
|
475 topic: mytopic |
|
476 parent: 20:fdb403258632 |
|
477 user: test |
|
478 date: Thu Jan 01 00:00:00 1970 +0000 |
|
479 summary: split7 |
|
480 |
|
481 changeset: 23:2532b288af61 |
|
482 branch: new-branch |
|
483 tag: tip |
|
484 topic: mytopic |
|
485 user: test |
|
486 date: Thu Jan 01 00:00:00 1970 +0000 |
|
487 summary: split8 |
|
488 |
|
489 $ hg topic |
|
490 * mytopic |
|