Rev 2810: Add another test that tags work ok in checkouts in http://sourcefrog.net/bzr/tags

Martin Pool mbp at sourcefrog.net
Tue Sep 11 04:17:06 BST 2007


At http://sourcefrog.net/bzr/tags

------------------------------------------------------------
revno: 2810
revision-id: mbp at sourcefrog.net-20070911031705-ho2pp6ulm4zln3du
parent: mbp at sourcefrog.net-20070911030714-nzoumditu81hhwtw
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: tags
timestamp: Tue 2007-09-11 13:17:05 +1000
message:
  Add another test that tags work ok in checkouts
modified:
  bzrlib/tests/test_tag.py       test_tag.py-20070212110532-91cw79inah2cfozx-2
=== modified file 'bzrlib/tests/test_tag.py'
--- a/bzrlib/tests/test_tag.py	2007-09-11 03:07:14 +0000
+++ b/bzrlib/tests/test_tag.py	2007-09-11 03:17:05 +0000
@@ -103,7 +103,7 @@
 
 class TestTagsInCheckouts(TestCaseWithTransport):
 
-    def test_tag_in_checkout(self):
+    def test_update_tag_into_checkout(self):
         # checkouts are directly connected to the tags of their master branch:
         # adding a tag in the checkout pushes it to the master
         # https://bugs.launchpad.net/bzr/+bug/93860
@@ -116,6 +116,14 @@
         child.tags.delete_tag('foo')
         self.assertRaises(errors.NoSuchTag,
             master.tags.lookup_tag, 'foo')
+    
+    def test_tag_copied_by_initial_checkout(self):
+        # https://bugs.launchpad.net/bzr/+bug/93860
+        master = self.make_branch('master')
+        master.tags.set_tag('foo', 'rev-1')
+        co_tree = master.create_checkout('checkout')
+        self.assertEquals('rev-1',
+            co_tree.branch.tags.lookup_tag('foo'))
 
     def test_update_updates_tags(self):
         # https://bugs.launchpad.net/bzr/+bug/93856




More information about the bazaar-commits mailing list