[PATCH 4 of 4] convert/bzr: test tags conversion

Patrick Mezard pmezard at gmail.com
Thu Feb 2 03:17:16 CST 2012


# HG changeset patch
# User Patrick Mezard <pmezard at gmail.com>
# Date 1328174113 -3600
# Branch stable
# Node ID 0af196217f70a5f389344c93ef6ad8d06855e118
# Parent  dc96c0da5966b033b519a6071c5fb67522582b76
convert/bzr: test tags conversion

diff --git a/tests/test-convert-bzr.t b/tests/test-convert-bzr.t
--- a/tests/test-convert-bzr.t
+++ b/tests/test-convert-bzr.t
@@ -218,6 +218,8 @@
   $ bzr add a
   adding a
   $ bzr ci -qm adda --commit-time '2012-01-01 00:00:01 +0000'
+  $ bzr tag trunk-tag
+  Created tag trunk-tag.
   $ bzr switch -b branch
   Tree is up to date at revision 1.
   Switched to branch: *repo/branch/ (glob)
@@ -225,6 +227,8 @@
   $ bzr add b
   adding b
   $ bzr ci -qm addb --commit-time '2012-01-01 00:00:02 +0000'
+  $ bzr tag branch-tag
+  Created tag branch-tag.
   $ bzr switch --force ../repo/trunk
   Updated to revision 1.
   Switched to branch: */repo/trunk/ (glob)
@@ -239,10 +243,21 @@
   2 adda
   1 addb
   0 changea
+  updating tags
   $ (cd repo-bzr; glog)
+  o  3 at default "update tags" files: .hgtags
+  |
   o  2 at default "changea" files: a
   |
   | o  1 at branch "addb" files: b
   |/
   o  0 at default "adda" files: a
   
+
+Test tags (converted identifiers are not stable because bzr ones are
+not and get incorporated in extra fields).
+
+  $ hg -R repo-bzr tags
+  tip                                3:* (glob)
+  branch-tag                         1:* (glob)
+  trunk-tag                          0:* (glob)


More information about the Mercurial-devel mailing list