tests/test-branches.t
branchstable
changeset 19180 12dbdd348bb0
parent 18955 f3245f22771c
child 19305 b500a663a2c7
--- a/tests/test-branches.t	Fri May 10 00:26:39 2013 +0400
+++ b/tests/test-branches.t	Tue May 07 23:49:03 2013 +0900
@@ -68,6 +68,18 @@
   abort: '\n' cannot be used in a name
   [255]
 
+trailing or leading spaces should be stripped before testing duplicates
+
+  $ hg branch 'b '
+  abort: a branch of the same name already exists
+  (use 'hg update' to switch to it)
+  [255]
+
+  $ hg branch ' b'
+  abort: a branch of the same name already exists
+  (use 'hg update' to switch to it)
+  [255]
+
 verify update will accept invalid legacy branch names
 
   $ hg init test-invalid-branch-name