Patchwork [3,of,4] tests: improve tag reserved name test coverage

login
register
mail settings
Submitter timeless@mozdev.org
Date Jan. 14, 2016, 6:26 p.m.
Message ID <e2bca0913d73fb31fb6c.1452795971@waste.org>
Download mbox | patch
Permalink /patch/12760/
State Changes Requested
Delegated to: Yuya Nishihara
Headers show

Comments

timeless@mozdev.org - Jan. 14, 2016, 6:26 p.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1451197020 0
#      Sun Dec 27 06:17:00 2015 +0000
# Node ID e2bca0913d73fb31fb6c5a9249ea984b80a7d71c
# Parent  9b06612693f532cd977ccc780431361bea159bea
tests: improve tag reserved name test coverage

Patch

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