Rev 184: Added skeletal TagCommand. in http://bzr.daniel-watkins.co.uk/pqm/tag

Daniel Watkins daniel at daniel-watkins.co.uk
Tue Jul 22 20:59:49 BST 2008


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

------------------------------------------------------------
revno: 184
revision-id: daniel at daniel-watkins.co.uk-20080722195819-7w0aowx88rci80vv
parent: daniel at daniel-watkins.co.uk-20080722195126-qo6lrgng60le1n8q
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: tag
timestamp: Tue 2008-07-22 20:58:19 +0100
message:
  Added skeletal TagCommand.
-------------- next part --------------
=== modified file 'pqm/script.py'
--- a/pqm/script.py	2008-07-17 02:03:01 +0000
+++ b/pqm/script.py	2008-07-22 19:58:19 +0000
@@ -749,6 +749,19 @@
         return self.successful, self.unrecognized, self.output
 
 
+class TagCommand(Command):
+
+    def __init__(self, script, branch_spec_handler, configp, branch,
+                 revision, tag):
+        super(TagCommand, self).__init__(script, branch_spec_handler, configp)
+        self.branch = branch
+        self.revision = revision
+        self.tag = tag
+
+    def run(self):
+        return [['tag'], None, [self.branch, self.revision, self.tag]]
+
+
 class CommandRunner(Command):
     """This runs commands as lines one at a time."""
     replay_re = re.compile('^replay (\S+/\S+)\s+(\S+/\S+)\s*$')



More information about the bazaar-commits mailing list