[PATCH 3 of 4] tests: improve tag reserved name test coverage
timeless
timeless at mozdev.org
Thu Jan 14 12:26:11 CST 2016
# HG changeset patch
# User timeless <timeless at 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
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]
More information about the Mercurial-devel
mailing list