Mercurial > evolve
comparison tests/test-topic.t @ 3652:81985b9d3e74
topic-ext: restrict the format of topic names
This patch restrict the format of topic names to make sure they consist only of
alphanumeric, '_' and '-' characters.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 29 Mar 2018 17:42:32 +0530 |
parents | 14fbb847be5a |
children | a346b1641dfa |
comparison
equal
deleted
inserted
replaced
3651:fa15068a9945 | 3652:81985b9d3e74 |
---|---|
111 $ hg topic 12345 | 111 $ hg topic 12345 |
112 abort: cannot use an integer as a name | 112 abort: cannot use an integer as a name |
113 [255] | 113 [255] |
114 $ hg topic ' ' | 114 $ hg topic ' ' |
115 abort: topic name cannot consist entirely of whitespaces | 115 abort: topic name cannot consist entirely of whitespaces |
116 [255] | |
117 | |
118 $ hg topic 'a12#45' | |
119 abort: invalid topic name: 'a12#45' | |
120 (topic names can only consist of alphanumeric, '-' and '_' characters) | |
121 [255] | |
122 | |
123 $ hg topic 'foo bar' | |
124 abort: invalid topic name: 'foo bar' | |
125 (topic names can only consist of alphanumeric, '-' and '_' characters) | |
126 [255] | |
127 | |
128 this is trying to list topic names | |
129 $ hg topic '' | |
130 | |
131 $ hg topic '*12 B23' | |
132 abort: invalid topic name: '*12 B23' | |
133 (topic names can only consist of alphanumeric, '-' and '_' characters) | |
116 [255] | 134 [255] |
117 | 135 |
118 Test commit flag and help text | 136 Test commit flag and help text |
119 | 137 |
120 $ echo stuff >> alpha | 138 $ echo stuff >> alpha |