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 --+
                                              |
                                 object --+   |
                                          |   |
                      util.state.StateMixin --+
                                              |
                                             GitPoller

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

Instance Methods
 
__init__(self, repourl, branches=None, branch=None, workdir=None, pollInterval=600, gitbin='git', usetimestamps=True, category=None, project=None, pollinterval=-2, fetch_refspec=None, encoding='utf-8')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
startService(self) 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: doPoll, startLoop, stopLoop, stopService

Inherited from base.ChangeSource: __provides__

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

Inherited from util.ComparableMixin: __cmp__, __hash__

Inherited from util.state.StateMixin: getState, setState

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  compare_attrs = ['repourl', 'branches', 'workdir', 'pollInterv...

Inherited from base.PollingChangeSource: pollInterval

Inherited from base.ChangeSource: __implemented__, master

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

Properties

Inherited from object: __class__

Method Details

__init__(self, repourl, branches=None, branch=None, workdir=None, pollInterval=600, gitbin='git', usetimestamps=True, category=None, project=None, pollinterval=-2, fetch_refspec=None, encoding='utf-8')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

startService(self)

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

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:
  • @defer.inlineCallbacks
Overrides: base.PollingChangeSource.poll
(inherited documentation)

Class Variable Details

compare_attrs

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