comparison autobot/changes/poller.py @ 261:0927a07dfab3

remove commentted code
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 28 Dec 2011 20:43:53 -0800
parents 5f286f64ce6e
children a13749f19067
comparison
equal deleted inserted replaced
260:d08050b4c858 261:0927a07dfab3
61 61
62 if not self.workdir: 62 if not self.workdir:
63 self.workdir = tempfile.mkdtemp() 63 self.workdir = tempfile.mkdtemp()
64 64
65 self.name = '%s: %s#%s' % (self.__class__.__name__, repourl, branch) 65 self.name = '%s: %s#%s' % (self.__class__.__name__, repourl, branch)
66
67 # XXX this is commented out because of race conditions on startup
68 # instead, the repository is just made if it doesn't exist
69
70 # def startService(self):
71
72 # base.PollingChangeSource.startService(self)
73
74 # # initialize the repository we'll use to get changes; note that
75 # # startService is not an event-driven method, so this method will
76 # # instead acquire self.initLock immediately when it is called.
77 # if not self.isInitialized():
78 # log.msg('Initializing new repository')
79 # d = self.initRepository()
80 # d.addErrback(log.err, 'while initializing %s repository at %s' % (self.name, self.workdir))
81 # else:
82 # log.msg("%s repository already exists" % self.name)
83
84 # log.msg("%s startService with repository %s" % (self.name, self.workdir))
85
86 # # call this *after* initRepository, so that the initLock is locked first
87
88 66
89 def initRepository(self, _): 67 def initRepository(self, _):
90 """initialize a repository or whatever""" 68 """initialize a repository or whatever"""
91 69
92 # make the directory, if necessary 70 # make the directory, if necessary