Package buildbot :: Package slave :: Module commands :: Class P4Sync
[frames | no frames]

Class P4Sync

Command --+    
          |    
 SourceBase --+
              |
             P4Sync


A partial P4 source-updater. Requires manual setup of a per-slave P4 environment. The only thing which comes from the master is P4PORT. 'mode' is required to be 'copy'.

['p4port'] (required): host:port for server to access ['p4user'] (optional): user to use for access ['p4passwd'] (optional): passwd to try for the user ['p4client'] (optional): client spec to use
Method Summary
  doVCFull(self)
  doVCUpdate(self)
  setup(self, args)
Override this in a subclass to extract items from the args dict.
  sourcedirIsUpdateable(self)
    Inherited from SourceBase
  doClobber(self, dummy, dirname)
  doCopy(self, res)
  doPatch(self, res)
  doVC(self, res)
  doVCFallback2(self, res)
  interrupt(self)
Override this in a subclass to allow commands to be interrupted.
  maybeDoVCFallback(self, rc)
  maybeDoVCRetry(self, res)
We get here somewhere after a VC chain has finished.
  parseGotRevision(self)
Override this in a subclass.
  sourcedataMatches(self)
  start(self)
Start the command.
  writeSourcedata(self, res)
    Inherited from Command
  __init__(self, builder, stepId, args)
  commandComplete(self, res)
  doInterrupt(self)
  doStart(self)
  sendStatus(self, status)
Send a status update to the master.

Class Variable Summary
str header = 'p4 sync'
    Inherited from SourceBase
str sourcedata = ''
    Inherited from Command
Implements __implemented__ = <implementedBy buildbot.slave.commands...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
bool debug = False
bool interrupted = False
bool running = False

Method Details

setup(self, args)

Override this in a subclass to extract items from the args dict.
Overrides:
buildbot.slave.commands.SourceBase.setup (inherited documentation)

Class Variable Details

header

Type:
str
Value:
'p4 sync'                                                              

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