# HG changeset patch # User Jeff Hammel # Date 1296870334 28800 # Node ID 9f58383889c075aa57e6a416bebc9fb428526be8 # Parent 584f70d577ecacb53df53e1fb459ba2d40cb2ade pretend that we checkout the branch of an hg repository, even though we know that this is a lie diff -r 584f70d577ec -r 9f58383889c0 autobot/changes/poller.py --- 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"""