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

Class P4Source

ComparableMixin --+    
                  |    
        Service --+    
                  |    
       ChangeSource --+
                      |
    ComparableMixin --+
                      |
                     P4Source


This source will poll a perforce repository for changes and submit them to the change master.
Method Summary
  __init__(self, p4port, p4user, p4passwd, p4base, p4bin, split_file, pollinterval, histmax)
  checkp4(self)
  describe(self)
  startService(self)
  stopService(self)
    Inherited from Service
  __getstate__(self)
  disownServiceParent(self)
  privilegedStartService(self)
  setName(self, name)
  setServiceParent(self, parent)
    Inherited from ComparableMixin
  __cmp__(self, them)
  __hash__(self)

Class Variable Summary
SRE_Pattern changes_line_re = Change (\d+) on \S+ by \S+@\S+ '.+'$
list compare_attrs = ['p4port', 'p4user', 'p4passwd', 'p4base...
str datefmt = '%Y/%m/%d %H:%M:%S'
SRE_Pattern describe_header_re = Change \d+ by (\S+)@\S+ on (.+)$
SRE_Pattern file_re = ^\.\.\. ([^#]+)#\d+ \w+$
NoneType last_change = None                                                                  
NoneType loop = None                                                                  
NoneType parent = None                                                                  
bool working = False
    Inherited from ChangeSource
Implements __implemented__ = <implementedBy buildbot.changes.base.C...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from Service
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
NoneType name = None                                                                  
int running = 0                                                                     

Method Details

__init__(self, p4port=None, p4user=None, p4passwd=None, p4base='//', p4bin='p4', split_file=<function <lambda> at 0x407e4a3c>, pollinterval=600, histmax=100)
(Constructor)

Parameters:
p4port - p4 port definition (host:portno)
           (type=string)
p4user - p4 user
           (type=string)
p4passwd - p4 passwd
           (type=string)
p4base - p4 file specification to limit a poll to without the trailing '...' (i.e., //)
           (type=string)
p4bin - path to p4 binary, defaults to just 'p4'
           (type=string)
split_file
           (type=func $param split_file: splits a filename into branch and filename.)
pollinterval - interval in seconds between polls
           (type=int)
histmax - maximum number of changes to look back through
           (type=int)

Class Variable Details

changes_line_re

Type:
SRE_Pattern
Value:
Change (\d+) on \S+ by \S+@\S+ '.+'$                                   

compare_attrs

Type:
list
Value:
['p4port', 'p4user', 'p4passwd', 'p4base', 'p4bin', 'pollinterval', 'h\
istmax']                                                               

datefmt

Type:
str
Value:
'%Y/%m/%d %H:%M:%S'                                                    

describe_header_re

Type:
SRE_Pattern
Value:
Change \d+ by (\S+)@\S+ on (.+)$                                       

file_re

Type:
SRE_Pattern
Value:
^\.\.\. ([^#]+)#\d+ \w+$                                               

last_change

Type:
NoneType
Value:
None                                                                  

loop

Type:
NoneType
Value:
None                                                                  

parent

Type:
NoneType
Value:
None                                                                  

working

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Sun Dec 10 22:04:44 2006 http://epydoc.sf.net