changeset 263:a13749f19067

cleanup and remove commented code
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 28 Dec 2011 21:06:58 -0800
parents 5cd95c967f70
children f733ebc095cc
files autobot/changes/poller.py
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/changes/poller.py	Wed Dec 28 21:00:25 2011 -0800
+++ b/autobot/changes/poller.py	Wed Dec 28 21:06:58 2011 -0800
@@ -28,7 +28,7 @@
     them to the change master.
     """
 
-    src = ''
+    src = '' # repository type
 
     compare_attrs = ["repourl", "branch", "workdir",
                      "pollInterval", "binary", "usetimestamps",
@@ -79,9 +79,8 @@
         # perform the initialization
         def processCommand(command):
             d = utils.getProcessOutputAndValue(self.binary,
-                    command, env=dict(PATH=os.environ['PATH']))
-#            d.addCallback(self._convert_nonzero_to_failure)
-#            d.addErrback(self._stop_on_failure)
+                                               command,
+                                               env=dict(PATH=os.environ['PATH']))
             return d
         for command in self.initializationCommands():
             self.log('%s %s' % (self.binary, ' '.join(command)))
@@ -258,7 +257,7 @@
 class HgPoller(Poller):
     """poller for a mercurial source"""
 
-    src = 'hg'
+    src = 'hg' # type
 
     def __init__(self, repourl, binary='hg', branch='default', **kwargs):
         Poller.__init__(self, repourl, binary=binary, branch=branch, **kwargs)