[PATCH 1 of 2 V4] tag: test tagging an empty repo

Matt Mackall mpm at selenic.com
Tue Dec 14 16:39:59 CST 2010


On Tue, 2010-12-14 at 11:49 -0600, Kevin Bullock wrote:
> # HG changeset patch
> # User Kevin Bullock <kbullock at ringworld.org>
> # Date 1292309690 21600
> # Node ID 59950753e03c594e3781842bd20b29a4ba13385a
> # Parent  d089bbb33cb93fcef524d3ed545901961b1bd008
> tag: test tagging an empty repo

This test is too small to be on its own:

> diff --git a/tests/test-tag-empty.t b/tests/test-tag-empty.t
> new file mode 100644
> --- /dev/null
> +++ b/tests/test-tag-empty.t
> @@ -0,0 +1,6 @@
> +tagging empty repo
> +
> +  $ hg init repo-tag-empty
> +  $ cd repo-tag-empty
> +  $ hg tag nullrev
> +  $ cd ..

Instead I folded the following into your next patch:

diff -r 8fb791b7d239 tests/test-tag.t
--- a/tests/test-tag.t	Mon Dec 06 22:04:10 2010 -0600
+++ b/tests/test-tag.t	Tue Dec 14 16:39:04 2010 -0600
@@ -240,6 +240,9 @@
   abort: not at a branch head (use -f to force)
   [255]
 
+  $ hg init empty
+  $ hg tag -R empty nullrev
+
   $ cd ..
 
 tagging on an uncommitted merge (issue2542)


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list