Package buildbot :: Package changes :: Module gitpoller :: Class GitPoller
[frames] | no frames]

Class GitPoller

source code

twisted.application.service.Service --+        
                                      |        
               util.ComparableMixin --+        
                                      |        
                      base.ChangeSource --+    
                                          |    
                   base.PollingChangeSource --+
                                              |
                                             GitPoller

This source will poll a remote git repo for changes and submit them to the change master.

Instance Methods
 
__init__(self, repourl, branch='master', workdir=None, pollInterval=600, gitbin='git', usetimestamps=True, category=None, project=None, pollinterval=-2, fetch_refspec=None, encoding='utf-8') source code
 
startService(self) source code
 
initRepository(*args, **kwargs) source code
 
describe(self) source code
 
poll(*args, **kwargs)
Perform the polling operation, and return a deferred that will fire when the operation is complete.
source code

Inherited from base.PollingChangeSource: stopService

Inherited from base.ChangeSource: __provides__

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, privilegedStartService, setName, setServiceParent

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables
  compare_attrs = ['repourl', 'branch', 'workdir', 'pollInterval...

Inherited from base.PollingChangeSource: pollInterval

Inherited from base.ChangeSource: __implemented__, master

Inherited from twisted.application.service.Service: name, parent, running

Method Details

startService(self)

source code 
Overrides: twisted.application.service.Service.startService

initRepository(*args, **kwargs)

source code 
Decorators:
  • @deferredLocked('initLock')

describe(self)

source code 
Overrides: base.ChangeSource.describe

poll(*args, **kwargs)

source code 

Perform the polling operation, and return a deferred that will fire when the operation is complete. Failures will be logged, but the method will be called again after pollInterval seconds.

Decorators:
  • @deferredLocked('initLock')
Overrides: base.PollingChangeSource.poll
(inherited documentation)

Class Variable Details

compare_attrs

Value:
['repourl',
 'branch',
 'workdir',
 'pollInterval',
 'gitbin',
 'usetimestamps',
 'category',
 'project']