comparison tests/test-topic.t @ 2888:aa5268900ba1

topic: add test showing no restrictions on topic names Currently we don't have any restrictions on topic names and each of the topic name works. We want them to not work as some of them are used internally and only integers can be rev numbers too.
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 29 Aug 2017 19:03:59 +0530
parents b629874ccaac
children 31cbace4c0f1
comparison
equal deleted inserted replaced
2887:c1cf3c8947f1 2888:aa5268900ba1
87 abort: cannot use --current and --clear 87 abort: cannot use --current and --clear
88 [255] 88 [255]
89 $ hg topics --clear somerandomtopic 89 $ hg topics --clear somerandomtopic
90 abort: cannot use --clear when setting a topic 90 abort: cannot use --clear when setting a topic
91 [255] 91 [255]
92
93 Trying some invalid topicnames
94
95 $ hg topic '.'
96 $ hg topic null
97 $ hg topic tip
98 $ hg topic 12345
99 $ hg topic ' '
92 100
93 Test commit flag and help text 101 Test commit flag and help text
94 102
95 $ echo stuff >> alpha 103 $ echo stuff >> alpha
96 $ HGEDITOR=cat hg ci -t topicflag 104 $ HGEDITOR=cat hg ci -t topicflag