Mercurial > evolve
comparison tests/test-topic.t @ 2889:31cbace4c0f1
topics: make sure we have some restrictions on topic names
This patch makes sure we don't allow topic names with just whitespaces, and
other checks which we do for a bookmark.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 29 Aug 2017 19:12:00 +0530 |
parents | aa5268900ba1 |
children | 3dfc88c06378 |
comparison
equal
deleted
inserted
replaced
2888:aa5268900ba1 | 2889:31cbace4c0f1 |
---|---|
91 [255] | 91 [255] |
92 | 92 |
93 Trying some invalid topicnames | 93 Trying some invalid topicnames |
94 | 94 |
95 $ hg topic '.' | 95 $ hg topic '.' |
96 abort: the name '.' is reserved | |
97 [255] | |
96 $ hg topic null | 98 $ hg topic null |
99 abort: the name 'null' is reserved | |
100 [255] | |
97 $ hg topic tip | 101 $ hg topic tip |
102 abort: the name 'tip' is reserved | |
103 [255] | |
98 $ hg topic 12345 | 104 $ hg topic 12345 |
105 abort: cannot use an integer as a name | |
106 [255] | |
99 $ hg topic ' ' | 107 $ hg topic ' ' |
108 abort: topic name cannot consist entirely of whitespaces | |
109 [255] | |
100 | 110 |
101 Test commit flag and help text | 111 Test commit flag and help text |
102 | 112 |
103 $ echo stuff >> alpha | 113 $ echo stuff >> alpha |
104 $ HGEDITOR=cat hg ci -t topicflag | 114 $ HGEDITOR=cat hg ci -t topicflag |