changeset 163:c8596f7a9a29

remove *more* commented code
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 31 Jan 2011 16:49:06 -0800
parents 57e82f26fcf2
children 8fbeb71aa991
files autobot/changes/poller.py
diffstat 1 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Mon Jan 31 16:42:03 2011 -0800
+++ b/autobot/changes/poller.py	Mon Jan 31 16:49:06 2011 -0800
@@ -19,7 +19,6 @@
 from twisted.python import log
 from twisted.internet import defer, utils
 
-#from buildbot.util import deferredLocked
 from buildbot.changes import base, changes
 
 class Poller(base.PollingChangeSource):
@@ -62,6 +61,9 @@
 
         self.name = '%s: %s#%s' % (self.__class__.__name__, repourl, branch)
 
+# XXX this is commented out because of race conditions on startup
+# instead, the repository is just made if it doesn't exist
+
 #     def startService(self):
 
 #         base.PollingChangeSource.startService(self)
@@ -202,12 +204,6 @@
         d.addCallback(self._add_change, rev)
 
         return d
-        # get metadata
-#             dl = defer.DeferredList([
-#                 ], consumeErrors=True)
-
-#             # add the change, apparently
-#             dl.addCallback(self._add_change, rev)
         
 
     def _add_change(self, _, rev):
@@ -380,3 +376,11 @@
         stripped_output = output.strip()
         self.commitInfo['comments'] = stripped_output
         return self.commitInfo['comments']
+
+
+###
+
+class GitPoller(Poller):
+
+    def __init__(self, repourl, binary='git', branch='master', **kwargs):
+        Poller.__init__(self, repourl, binary=binary, branch=branch, **kwargs)