Mercurial > hg > autobot
changeset 167:f603922dd5c8
stub gitpoller change list
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 31 Jan 2011 18:15:48 -0800 |
parents | dba6bcae1575 |
children | 8528311427e0 |
files | autobot/changes/poller.py |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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