changeset 244:714a7a7f4ea7

figure out this timestamp nonsense
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 22 Dec 2011 15:39:00 -0800
parents 5329606eb113
children 5f286f64ce6e
files autobot/changes/poller.py autobot/projects/project.template
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Thu Dec 22 15:22:07 2011 -0800
+++ b/autobot/changes/poller.py	Thu Dec 22 15:39:00 2011 -0800
@@ -214,6 +214,9 @@
     def _add_change(self, _, rev):
         log.msg("_add_change results: %s" % self.commitInfo)
 
+        timestamp = self.commitInfo['timestamp']
+        self.log('timestamp: %s' % timestamp)
+
         # send the change to the master
         c = changes.Change(who=self.commitInfo['name'],
                            revision=rev,
@@ -229,7 +232,7 @@
                               revision=rev,
                               files=self.commitInfo['files'],
                               comments=self.commitInfo['comments'],
-                              when_timestamp=self.commitInfo['timestamp'],
+                              when_timestamp=timestamp,
                               branch=self.branch,
                               category=self.category,
                               project=self.project,
--- a/autobot/projects/project.template	Thu Dec 22 15:22:07 2011 -0800
+++ b/autobot/projects/project.template	Thu Dec 22 15:39:00 2011 -0800
@@ -10,8 +10,8 @@
 
     sources = {'hg': ['{{repo}}'],
                'git': []}
-    
-    def __init__(self, platform=None):
+
+    def __init__(self, platform=None, hg=None, git=None):
         SourceFactory.__init__(self, platform=platform)
 
         # checkout the repositories