changeset 212:9f58383889c0

pretend that we checkout the branch of an hg repository, even though we know that this is a lie
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 04 Feb 2011 17:45:34 -0800
parents 584f70d577ec
children c35135b847fd
files autobot/changes/poller.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Fri Feb 04 17:43:25 2011 -0800
+++ b/autobot/changes/poller.py	Fri Feb 04 17:45:34 2011 -0800
@@ -265,10 +265,11 @@
         return os.path.exists(os.path.join(self.workdir, '.hg'))
 
     def initializationCommands(self):
+        """commands to initialize a mercurial repository"""
+        
         commands = [ [ 'clone', self.repourl, self.workdir ] ]
         if self.branch != 'default':
-            # TODO
-            pass
+            commands.append(['-r', self.workdir, 'checkout', self.branch])
         return commands
 
     def _fetch(self, _):
@@ -374,7 +375,7 @@
         self.commitInfo['files'] = fileList
         return self.commitInfo['files']
 
-    ### comments
+    ### commit comments
 
     def _get_commit_comments(self, _, rev):
         """get the commit message"""