Package buildbot :: Package changes :: Module monotone :: Class MonotoneSource
[hide private]
[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 [hide private]
 
__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
 
_handle_error(self, failure) source code
 
_maybe_init_db(self) source code
 
_do_netsync(self, output) source code
 
_get_changes(self, output) source code
 
_get_new_head(self) source code
 
_find_new_head(self, new_heads, tmpfile_name) source code
 
_pick_new_head(self, old_head_descendents, new_heads) source code
 
_process_new_head(self, new_head) source code
 
_simplify_revisions(self) source code
 
_reset_done_revisions(self, new_done_revisions) source code
 
_get_new_revisions(self, blah, new_head) source code
 
_add_changes_for_revisions(self, revs) source code
 
_add_change_for_revision(self, blah, rid) source code
 
_add_change_from_log(self, log, rid) source code
 
_add_change_from_log_and_revision(self, revision, log, rid) source code
 
_finish_changes(self, blah, new_head) source code

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

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables [hide private]
  __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 [hide private]

__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 [hide private]

compare_attrs

Value:
["server_addr", "trusted_keys", "db_path", "pollinterval", "branch", "\
monotone_exec"]