Rev 189: Added test for revid tagging. in http://bzr.daniel-watkins.co.uk/pqm/tag

Daniel Watkins daniel at daniel-watkins.co.uk
Tue Jul 22 21:25:50 BST 2008


At http://bzr.daniel-watkins.co.uk/pqm/tag

------------------------------------------------------------
revno: 189
revision-id: daniel at daniel-watkins.co.uk-20080722202422-3xlk5ynv3tbzk1zv
parent: daniel at daniel-watkins.co.uk-20080722202103-8qg93yrebfgvqmjk
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: tag
timestamp: Tue 2008-07-22 21:24:22 +0100
message:
  Added test for revid tagging.
-------------- next part --------------
=== modified file 'pqm/tests/test_pqm.py'
--- a/pqm/tests/test_pqm.py	2008-07-22 20:21:03 +0000
+++ b/pqm/tests/test_pqm.py	2008-07-22 20:24:22 +0000
@@ -443,6 +443,12 @@
         command.run()
         self.assertEqual(self.tree.branch.tags.lookup_tag('tag'), self.rev_id)
 
+    def test_TagCommand_revid(self):
+        rev_id = self.tree.commit("Revision to be tagged.")
+        command = self.get_tag_command(rev_id, 'tag')
+        command.run()
+        self.assertEqual(self.tree.branch.tags.lookup_tag('tag'), rev_id)
+
 
 class FunctionalTestCommandRunner(unittest.TestCase):
 



More information about the bazaar-commits mailing list