changeset 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 c1cf3c8947f1
children 31cbace4c0f1
files tests/test-topic.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-topic.t	Wed Aug 30 17:32:32 2017 +0200
+++ b/tests/test-topic.t	Tue Aug 29 19:03:59 2017 +0530
@@ -90,6 +90,14 @@
   abort: cannot use --clear when setting a topic
   [255]
 
+Trying some invalid topicnames
+
+  $ hg topic '.'
+  $ hg topic null
+  $ hg topic tip
+  $ hg topic 12345
+  $ hg topic '   '
+
 Test commit flag and help text
 
   $ echo stuff >> alpha