changeset 104:41370b2f96e0

starting to get to the changelist
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 22 Jan 2011 17:14:43 -0800
parents 7c63adbb5eec
children cbc4130a179d
files autobot/changes/poller.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Sat Jan 22 17:05:40 2011 -0800
+++ b/autobot/changes/poller.py	Sat Jan 22 17:14:43 2011 -0800
@@ -195,7 +195,9 @@
         return d
 
     def _process_change_list(self, changelist):
-        
+
+        log.msg('this is the changelist: %s' % changelist)
+        return
         # process oldest change first
         revList = changelist.split()
         if not revList or revList == ['']:
@@ -309,6 +311,13 @@
         d = utils.getProcessOutput(self.binary, ['log', '-r', range, '--template', '{node}\\n'],
                                    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 reverse(changes.split()) 
+        d.addCallback(split_changes)
+        
         return d
         
     def _catch_up(self, rev):