comparison tests/test-topic.t @ 2898:3dfc88c06378

topic: support --rev argument and properly process then as user input Revisions inputed by the users should be processed using `scmutil.revrange`. This will take alias into account and allow extensions to monitor the user inputs. As a side effect, the '_changetopics' function takes revisions as argument. make the API clearer.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 01 Sep 2017 17:53:14 +0200
parents 31cbace4c0f1
children 8c2d3c474fc6
comparison
equal deleted inserted replaced
2897:bd04a614b866 2898:3dfc88c06378
43 topic, you can do: 'hg topic -r "draft()" --current' 43 topic, you can do: 'hg topic -r "draft()" --current'
44 44
45 The --verbose version of this command display various information on the 45 The --verbose version of this command display various information on the
46 state of each topic. 46 state of each topic.
47 47
48 options: 48 options ([+] can be repeated):
49 49
50 --clear clear active topic if any 50 --clear clear active topic if any
51 -r --rev REV revset of existing revisions 51 -r --rev REV [+] revset of existing revisions
52 -l --list show the stack of changeset in the topic 52 -l --list show the stack of changeset in the topic
53 --age show when you last touched the topics 53 --age show when you last touched the topics
54 --current display the current topic only 54 --current display the current topic only
55 55
56 (some details hidden, use --verbose to show complete help) 56 (some details hidden, use --verbose to show complete help)
57 $ hg topics 57 $ hg topics
58 58
59 Test topics interaction with evolution: 59 Test topics interaction with evolution: