# HG changeset patch # User Jeff Hammel # Date 1296526548 28800 # Node ID f603922dd5c8d7be8187dc25afc7c72258ffc68d # Parent dba6bcae15759c03589dee7076f565d1e4f49477 stub gitpoller change list diff -r dba6bcae1575 -r f603922dd5c8 autobot/changes/poller.py --- a/autobot/changes/poller.py Mon Jan 31 17:51:30 2011 -0800 +++ b/autobot/changes/poller.py Mon Jan 31 18:15:48 2011 -0800 @@ -424,3 +424,15 @@ def _change_list(self, _): range = '%s..%s' % (self.preHash, self.postHash) # TODO: finish! + d = utils.getProcessOutput(self.binary, + ['log', range, r'--format=%H'], + path=self.workdir, + env=dict(PATH=os.environ['PATH']), + errortoo=False) + def split_changes(raw_changes): + changes = raw_changes.strip() + if not changes: + return [] + return changes.split() + d.addCallback(split_changes) + return d