--- a/tests/test-branches.t Wed Oct 17 21:39:07 2012 -0500
+++ b/tests/test-branches.t Wed Oct 17 21:42:06 2012 -0500
@@ -45,6 +45,8 @@
(branches are permanent and global, did you want a bookmark?)
$ hg commit -d '5 0' -m "Adding c branch"
+reserved names
+
$ hg branch tip
abort: the name 'tip' is reserved
[255]
@@ -55,6 +57,17 @@
abort: the name '.' is reserved
[255]
+invalid characters
+
+ $ hg branch 'foo:bar'
+ abort: ':' cannot be used in a branch name
+ [255]
+
+ $ hg branch 'foo
+ > bar'
+ abort: '\n' cannot be used in a branch name
+ [255]
+
$ echo 'd' >d
$ hg add d
$ hg branch 'a branch name much longer than the default justification used by branches'