Package buildbot :: Package changes :: Module hgpoller :: Class HgPoller
[frames] | no frames]

Class HgPoller

source code

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

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

Instance Methods
 
__init__(self, repourl, branch='default', workdir=None, pollInterval=600, hgbin='hg', usetimestamps=True, category=None, project='', encoding='utf-8') 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, startService, 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__

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

Inherited from base.PollingChangeSource: pollInterval

Inherited from base.ChangeSource: __implemented__, master

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

Method Details

__init__(self, repourl, branch='default', workdir=None, pollInterval=600, hgbin='hg', usetimestamps=True, category=None, project='', encoding='utf-8')
(Constructor)

source code 
Overrides: base.PollingChangeSource.__init__

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',
 'hgpoller',
 'usetimestamps',
 'category',
 'project']