Package buildbot :: Package changes :: Module monotone :: Class MonotoneSource
[frames] | no frames]

Class MonotoneSource

source code

twisted.application.service.Service --+
                                      |
               util.ComparableMixin --+
                                      |
                                     MonotoneSource

This source will poll a monotone server for changes and submit them to the change master.

Instance Methods
 
__init__(self, server_addr, branch, trusted_keys, db_path, pollinterval=60*10, monotone_exec="monotone") source code
 
startService(self) source code
 
stopService(self) source code
 
describe(self) source code
 
start_poll(self) source code

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

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables
  __implements__ = IChangeSource, service.Service.__implements__
  compare_attrs = ["server_addr", "trusted_keys", "db_path", "po...
  parent = None
hash(x)
  done_revisions = []
  last_revision = None
hash(x)
  loop = None
hash(x)
  d = None
hash(x)
  tmpfile = None
hash(x)
  monotone = None
hash(x)
  volatile = ["loop", "d", "tmpfile", "monotone"]

Inherited from twisted.application.service.Service: __implemented__, __provides__, name, running

Method Details

__init__(self, server_addr, branch, trusted_keys, db_path, pollinterval=60*10, monotone_exec="monotone")
(Constructor)

source code 
Parameters:
  • server_addr - monotone server specification (host:portno)
  • branch - monotone branch to watch
  • trusted_keys - list of keys whose code you trust
  • db_path - path to monotone database to pull into
  • pollinterval - interval in seconds between polls, defaults to 10 minutes
  • monotone_exec - path to monotone executable, defaults to "monotone"

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:
["server_addr", "trusted_keys", "db_path", "pollinterval", "branch", "\
monotone_exec"]