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

Class GitPoller

source code

twisted.application.service.Service --+    
                                      |    
               util.ComparableMixin --+    
                                      |    
                      base.ChangeSource --+
                                          |
                                         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='')
@type repourl: string @param repourl: the url that describes the remote repository, e.g.
source code
 
startService(self) source code
 
stopService(self) source code
 
describe(self) source code
 
poll(self) source code

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...
  parent = None
hash(x)
  loop = None
hash(x)
  volatile = ['loop']
  working = False
  running = False

Inherited from base.ChangeSource: __implemented__, __provides__

Inherited from twisted.application.service.Service: name

Method Details

__init__(self, repourl, branch='master', workdir=None, pollinterval=600, gitbin='git', usetimestamps=True, category=None, project='')
(Constructor)

source code 

@type  repourl: string
@param repourl: the url that describes the remote repository,
                e.g. git@example.com:foobaz/myrepo.git

@type  branch: string
@param branch: the desired branch to fetch, will default to 'master'

@type  workdir: string
@param workdir: the directory where the poller should keep its local repository.
                will default to <tempdir>/gitpoller_work
                
@type  pollinterval: int
@param pollinterval: interval in seconds between polls, default is 10 minutes

@type  gitbin: string
@param gitbin: path to the git binary, defaults to just 'git'

@type  usetimestamps: boolean
@param usetimestamps: parse each revision's commit timestamp (default True), or
                      ignore it in favor of the current time (to appear together
                      in the waterfall page)
                      
@type  category:     string
@param category:     catergory associated with the change. Attached to
                     the Change object produced by this changesource such that
                     it can be targeted by change filters.
                     
@type  project       string
@param project       project that the changes are associated to. Attached to
                     the Change object produced by this changesource such that
                     it can be targeted by change filters.

startService(self)

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

stopService(self)

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

Class Variable Details

compare_attrs

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