Package buildbot :: Package changes :: Module p4poller :: Class P4Source
[frames] | no frames]

Class P4Source

source code

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

This source will poll a perforce repository for changes and submit them to the change master.

Instance Methods
 
__init__(self, p4port=None, p4user=None, p4passwd=None, p4base='//', p4bin='p4', split_file=<function <lambda> at 0x6341410>, pollInterval=600, histmax=None, pollinterval=-2, encoding='utf8', project=None) source code
 
describe(self) source code
 
poll(self)
Perform the polling operation, and return a deferred that will fire when the operation is complete.
source code

Inherited from base.PollingChangeSource: startService, 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 = ['p4port', 'p4user', 'p4passwd', 'p4base', 'p4...
  env_vars = ['P4CLIENT', 'P4PORT', 'P4PASSWD', 'P4USER', 'P4CHA...
  changes_line_re = re.compile(r'Change (?P<num>\d+) on \S+ by \...
  describe_header_re = re.compile(r'Change \d+ by (?P<who>\S+)@\...
  file_re = re.compile(r'^\.\.\. (?P<path>[^#]+)#\d+ [/\w]+$')
  datefmt = '%Y/%m/%d %H:%M:%S'
  parent = None
hash(x)
  last_change = None
hash(x)
  loop = None
hash(x)

Inherited from base.PollingChangeSource: pollInterval

Inherited from base.ChangeSource: __implemented__, master

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

Method Details

describe(self)

source code 
Overrides: base.ChangeSource.describe

poll(self)

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.

Overrides: base.PollingChangeSource.poll
(inherited documentation)

Class Variable Details

compare_attrs

Value:
['p4port', 'p4user', 'p4passwd', 'p4base', 'p4bin', 'pollInterval']

env_vars

Value:
['P4CLIENT', 'P4PORT', 'P4PASSWD', 'P4USER', 'P4CHARSET']

changes_line_re

Value:
re.compile(r'Change (?P<num>\d+) on \S+ by \S+@\S+ \'.*\'$')

describe_header_re

Value:
re.compile(r'Change \d+ by (?P<who>\S+)@\S+ on (?P<when>.+)$')