[PATCH 1 of 9] test-tag: test that all reserved names are rejected

Kevin Bullock kbullock+mercurial at ringworld.org
Wed Oct 17 22:31:41 CDT 2012


# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1350530741 18000
# Node ID 616d0b790fc95633827f10055730888b73d5c80d
# Parent  a1c4b21fc1b206f5cf386a8d9d5b5882aaa6807f
test-tag: test that all reserved names are rejected

diff --git a/tests/test-tag.t b/tests/test-tag.t
--- a/tests/test-tag.t
+++ b/tests/test-tag.t
@@ -40,9 +40,15 @@
   $ hg tag -r 0 x y z y y z
   abort: tag names must be unique
   [255]
-  $ hg tag tap nada dot tip null .
+  $ hg tag tap nada dot tip
   abort: the name 'tip' is reserved
   [255]
+  $ hg tag .
+  abort: the name '.' is reserved
+  [255]
+  $ hg tag null
+  abort: the name 'null' is reserved
+  [255]
   $ hg tag "bleah"
   abort: tag 'bleah' already exists (use -f to force)
   [255]


More information about the Mercurial-devel mailing list