diff 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
line wrap: on
line diff
--- a/tests/test-topic.t	Tue Aug 29 19:03:59 2017 +0530
+++ b/tests/test-topic.t	Tue Aug 29 19:12:00 2017 +0530
@@ -93,10 +93,20 @@
 Trying some invalid topicnames
 
   $ hg topic '.'
+  abort: the name '.' is reserved
+  [255]
   $ hg topic null
+  abort: the name 'null' is reserved
+  [255]
   $ hg topic tip
+  abort: the name 'tip' is reserved
+  [255]
   $ hg topic 12345
+  abort: cannot use an integer as a name
+  [255]
   $ hg topic '   '
+  abort: topic name cannot consist entirely of whitespaces
+  [255]
 
 Test commit flag and help text