Mercurial > evolve
comparison tests/test-topic.t @ 2867:5c0b6af37b21
topics: add a current flag to display current topic
This patch adds a current flag which can be used by user to display the current
topic.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 28 Aug 2017 17:15:08 +0200 |
parents | 27ae7afd9a2a |
children | e46b68547017 |
comparison
equal
deleted
inserted
replaced
2866:736ab58641f0 | 2867:5c0b6af37b21 |
---|---|
45 | 45 |
46 --clear clear active topic if any | 46 --clear clear active topic if any |
47 -r --rev REV revset of existing revisions | 47 -r --rev REV revset of existing revisions |
48 -l --list show the stack of changeset in the topic | 48 -l --list show the stack of changeset in the topic |
49 --age show when you last touched the topics | 49 --age show when you last touched the topics |
50 --current display the current topic only | |
50 | 51 |
51 (some details hidden, use --verbose to show complete help) | 52 (some details hidden, use --verbose to show complete help) |
52 $ hg topics | 53 $ hg topics |
53 | 54 |
54 Test topics interaction with evolution: | 55 Test topics interaction with evolution: |
70 adding gamma | 71 adding gamma |
71 adding delta | 72 adding delta |
72 | 73 |
73 Still no topics | 74 Still no topics |
74 $ hg topics | 75 $ hg topics |
76 $ hg topics --current | |
77 no active topic | |
78 [1] | |
79 $ hg topics --current somerandomtopic | |
80 abort: cannot use --current when setting a topic | |
81 [255] | |
82 $ hg topics --current --clear | |
83 abort: cannot use --current and --clear | |
84 [255] | |
75 | 85 |
76 Test commit flag and help text | 86 Test commit flag and help text |
77 | 87 |
78 $ echo stuff >> alpha | 88 $ echo stuff >> alpha |
79 $ HGEDITOR=cat hg ci -t topicflag | 89 $ HGEDITOR=cat hg ci -t topicflag |
102 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 112 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
103 $ hg topic fran | 113 $ hg topic fran |
104 $ hg topics | 114 $ hg topics |
105 * fran | 115 * fran |
106 narf | 116 narf |
117 $ hg topics --current | |
118 fran | |
107 $ echo >> fran work >> beta | 119 $ echo >> fran work >> beta |
108 $ hg ci -m 'start on fran' | 120 $ hg ci -m 'start on fran' |
109 $ hg co narf | 121 $ hg co narf |
110 switching to topic narf | 122 switching to topic narf |
111 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 123 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |