Mercurial > public > mercurial-scm > hg-stable
diff tests/test-tag.t @ 17260:e432fb4b4221 stable
tag: don't allow tagging the null revision (issue1915)
Also fixed the tests that were doing this and expected it to work
author | Brad Hall <bhall@fb.com> |
---|---|
date | Tue, 05 Jun 2012 17:00:13 -0700 |
parents | 5b89700cce30 |
children | 813db1dccc05 |
line wrap: on
line diff
--- a/tests/test-tag.t Thu Jul 26 13:58:43 2012 +0900 +++ b/tests/test-tag.t Tue Jun 05 17:00:13 2012 -0700 @@ -248,7 +248,6 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg tag new-topo-head - tagging on null rev $ hg up null @@ -259,6 +258,12 @@ $ hg init empty $ hg tag -R empty nullrev + abort: null revision specified + [255] + + $ hg tag -R empty -r 00000000000 -f nulltag + abort: null revision specified + [255] $ cd .. @@ -300,6 +305,9 @@ commit hook on tag used to be run without write lock - issue3344 $ hg init repo-tag + $ touch repo-tag/test + $ hg -R repo-tag commit -A -m "test" + adding test $ hg init repo-tag-target $ hg -R repo-tag --config hooks.commit="\"hg\" push \"`pwd`/repo-tag-target\"" tag tag pushing to $TESTTMP/repo-tag-target @@ -307,5 +315,5 @@ adding changesets adding manifests adding file changes - added 1 changesets with 1 changes to 1 files + added 2 changesets with 2 changes to 2 files