Mercurial > evolve
comparison tests/test-topic.t @ 2869:b629874ccaac
topics: allow use a --current when setting a topic
This patch allow to use the current flag which can be used by user set existing
revs to the current topic.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 28 Aug 2017 17:16:16 +0200 |
parents | e46b68547017 |
children | aa5268900ba1 |
comparison
equal
deleted
inserted
replaced
2868:e46b68547017 | 2869:b629874ccaac |
---|---|
35 | 35 |
36 List of topics with their last touched time sorted according to it: | 36 List of topics with their last touched time sorted according to it: |
37 'hg topic --age' | 37 'hg topic --age' |
38 | 38 |
39 The active topic (if any) will be prepended with a "*". | 39 The active topic (if any) will be prepended with a "*". |
40 | |
41 The '--current' flag helps to take active topic into account. For example, | |
42 if you want to set the topic on all the draft changesets to the active | |
43 topic, you can do: 'hg topic -r "draft()" --current' | |
40 | 44 |
41 The --verbose version of this command display various information on the | 45 The --verbose version of this command display various information on the |
42 state of each topic. | 46 state of each topic. |
43 | 47 |
44 options: | 48 options: |
742 | user: test | 746 | user: test |
743 | date: Thu Jan 01 00:00:00 1970 +0000 | 747 | date: Thu Jan 01 00:00:00 1970 +0000 |
744 | summary: start on fran | 748 | summary: start on fran |
745 | | 749 | |
746 | 750 |
747 $ hg topics --rev '13::19' changewat | 751 Using the current flag |
748 switching to topic changewat | 752 |
753 $ hg topic changewat | |
754 $ hg topics --rev '13::19' --current | |
749 changed topic on 2 changes | 755 changed topic on 2 changes |
750 | 756 |
751 $ hg log -Gr 'draft()' | 757 $ hg log -Gr 'draft()' |
752 @ changeset: 21:56c83be6105f | 758 @ changeset: 21:56c83be6105f |
753 | tag: tip | 759 | tag: tip |