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

Class Bzr

source code

Command --+    
          |    
 SourceBase --+
              |
             Bzr

bzr-specific VC operation. In addition to the arguments handled by SourceBase, this command reads the following keys:

['repourl'] (required): the Bzr repository string

Instance Methods
 
setup(self, args)
Override this in a subclass to extract items from the args dict.
source code
 
sourcedirIsUpdateable(self)
Returns True if the tree can be updated.
source code
 
start(self)
Start the command.
source code
 
doVCUpdate(self)
Returns a deferred with the steps to update a checkout.
source code
 
doVCFull(self)
Returns a deferred with the steps to do a fresh checkout.
source code
 
doVCExport(self) source code
 
doForceSharedRepo(self) source code
 
get_revision_number(self, out) source code
 
parseGotRevision(self)
Override this in a subclass.
source code

Inherited from SourceBase: doClobber, doClobberTryChmodIfFail, doCopy, doPatch, doVC, doVCFallback2, interrupt, maybeClobber, maybeDoVCFallback, maybeDoVCRetry, readSourcedata, sourcedataMatches, sourcedirIsPatched, writeSourcedata

Inherited from Command: __init__, __providedBy__, commandComplete, doInterrupt, doStart, sendStatus

Class Variables
  header = 'bzr operation'

Inherited from SourceBase: sourcedata

Inherited from Command: __implemented__, __provides__, debug, interrupted, running

Method Details

setup(self, args)

source code 

Override this in a subclass to extract items from the args dict.

Overrides: Command.setup
(inherited documentation)

sourcedirIsUpdateable(self)

source code 

Returns True if the tree can be updated.

Overrides: SourceBase.sourcedirIsUpdateable
(inherited documentation)

start(self)

source code 

Start the command. This method should return a Deferred that will fire when the command has completed. The Deferred's argument will be ignored.

This method should be overridden by subclasses.

Overrides: Command.start
(inherited documentation)

doVCUpdate(self)

source code 

Returns a deferred with the steps to update a checkout.

Overrides: SourceBase.doVCUpdate
(inherited documentation)

doVCFull(self)

source code 

Returns a deferred with the steps to do a fresh checkout.

Overrides: SourceBase.doVCFull
(inherited documentation)

parseGotRevision(self)

source code 

Override this in a subclass. It should return a string that represents which revision was actually checked out, or a Deferred that will fire with such a string. If, in a future build, you were to pass this 'got_revision' string in as the 'revision' component of a SourceStamp, you should wind up with the same source code as this checkout just obtained.

It is probably most useful to scan self.command.stdout for a string of some sort. Be sure to set keepStdout=True on the VC command that you run, so that you'll have something available to look at.

If this information is unavailable, just return None.

Overrides: SourceBase.parseGotRevision
(inherited documentation)