Mercurial > evolve
comparison tests/test-topic.t @ 1844:862cabc132fd
topic: add ability to change topic of non-public changes
This is a little crude, but it gets the job done. You probably don't
want to use this without evolution for now.
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 10 Jun 2015 15:03:39 -0400 |
parents | 0ba067a97d06 |
children | 9fa5b8f4e98e |
comparison
equal
deleted
inserted
replaced
1843:0ba067a97d06 | 1844:862cabc132fd |
---|---|
12 | 12 |
13 View current topic, set current topic, or see all topics. | 13 View current topic, set current topic, or see all topics. |
14 | 14 |
15 options: | 15 options: |
16 | 16 |
17 --clear clear active topic if any | 17 --clear clear active topic if any |
18 --change VALUE revset of existing revisions to change topic | |
18 | 19 |
19 (some details hidden, use --verbose to show complete help) | 20 (some details hidden, use --verbose to show complete help) |
20 $ hg topics | 21 $ hg topics |
21 | 22 |
22 $ for x in alpha beta gamma delta ; do | 23 $ for x in alpha beta gamma delta ; do |
436 | date: Thu Jan 01 00:00:00 1970 +0000 | 437 | date: Thu Jan 01 00:00:00 1970 +0000 |
437 | summary: start on fran | 438 | summary: start on fran |
438 | | 439 | |
439 $ hg topics | 440 $ hg topics |
440 fran | 441 fran |
442 Changing topic fails if we don't give a topic | |
443 $ hg topic --change 9 | |
444 abort: changing topic requires a topic name or --clear | |
445 [255] | |
446 | |
447 Can't change topic of a public change | |
448 $ hg topic --change 1:: --clear | |
449 abort: can't change topic of a public change | |
450 [255] | |
451 | |
452 Can clear topics | |
453 $ hg topic --change 9 --clear | |
454 changed topic on 1 changes | |
455 please run hg evolve --rev "not topic()" now | |
456 $ hg log -Gr 'draft() and not obsolete()' | |
457 o changeset: 11:783930e1d79e | |
458 | tag: tip | |
459 | parent: 3:a53952faf762 | |
460 | user: test | |
461 | date: Thu Jan 01 00:00:00 1970 +0000 | |
462 | summary: start on fran | |
463 | | |
464 | @ changeset: 10:4073470c35e1 | |
465 | | user: test | |
466 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
467 | | summary: fran? | |
468 | | | |
469 | |
470 Normally you'd do this with evolve, but we'll use rebase to avoid | |
471 bonus deps in the testsuite. | |
472 | |
473 $ hg rebase -d tip -s . | |
474 rebasing 10:4073470c35e1 "fran?" | |
475 | |
476 Can add a topic to an existing change | |
477 $ hg topic --change 11 wat | |
478 changed topic on 1 changes | |
479 please run hg evolve --rev "topic(wat)" now | |
480 $ hg log -Gr 'draft() and not obsolete()' | |
481 o changeset: 13:d91cd8fd490e | |
482 | tag: tip | |
483 | topic: wat | |
484 | parent: 3:a53952faf762 | |
485 | user: test | |
486 | date: Thu Jan 01 00:00:00 1970 +0000 | |
487 | summary: start on fran | |
488 | | |
489 | @ changeset: 12:d9e32f4c4806 | |
490 | | user: test | |
491 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
492 | | summary: fran? | |
493 | | | |
494 | |
495 Normally you'd do this with evolve, but we'll use rebase to avoid | |
496 bonus deps in the testsuite. | |
497 | |
498 $ hg rebase -d tip -s . | |
499 rebasing 12:d9e32f4c4806 "fran?" | |
500 | |
501 $ hg log -Gr 'draft()' | |
502 @ changeset: 14:cf24ad8bbef5 | |
503 | tag: tip | |
504 | topic: wat | |
505 | user: test | |
506 | date: Thu Jan 01 00:00:00 1970 +0000 | |
507 | summary: fran? | |
508 | | |
509 o changeset: 13:d91cd8fd490e | |
510 | topic: wat | |
511 | parent: 3:a53952faf762 | |
512 | user: test | |
513 | date: Thu Jan 01 00:00:00 1970 +0000 | |
514 | summary: start on fran | |
515 | |