Package buildbot :: Package steps :: Module source :: Class Arch
[frames] | no frames]

Class Arch

source code

   process.buildstep.BuildStep --+        
                                 |        
process.buildstep.LoggingBuildStep --+    
                                     |    
                                Source --+
                                         |
                                        Arch
Known Subclasses:

Check out a source tree from an Arch repository named 'archive' available at 'url'. 'version' specifies which version number (development line) will be used for the checkout: this is mostly equivalent to a branch name. This version uses the 'tla' tool to do the checkout, to use 'baz' see Bazaar instead.

Instance Methods
 
__init__(self, url=None, version=None, archive=None, **kwargs) source code
 
computeSourceRevision(self, changes)
Each subclass must implement this method to do something more precise than -rHEAD every time.
source code
 
checkSlaveVersion(self, cmd, branch) source code
 
startVC(self, branch, revision, patch) source code

Inherited from Source: commandComplete, computeRepositoryURL, describe, setDefaultWorkdir, setStepStatus, start

Inherited from process.buildstep.LoggingBuildStep: addLogFile, checkDisconnect, createSummary, evaluateCommand, getText, getText2, interrupt, maybeGetText2, setStatus, setupLogfiles, startCommand

Inherited from process.buildstep.BuildStep: acquireLocks, addCompleteLog, addFactoryArguments, addHTMLLog, addLog, addLogObserver, addURL, failed, finished, getLog, getProperty, getSlaveName, getStepFactory, releaseLocks, runCommand, setBuild, setBuildSlave, setProgress, setProperty, setupProgress, slaveVersion, slaveVersionIsOlderThan, startStep

Class Variables
  name = 'arch'

Inherited from Source: branch, flunkOnFailure, haltOnFailure, notReally

Inherited from process.buildstep.LoggingBuildStep: logfiles, parms, progressMetrics

Inherited from process.buildstep.BuildStep: alwaysRun, doStepIf, flunkOnWarnings, locks, useProgress, warnOnFailure, warnOnWarnings

Instance Variables

Inherited from process.buildstep.BuildStep: build, progress, step_status

Method Details

__init__(self, url=None, version=None, archive=None, **kwargs)
(Constructor)

source code 
Parameters:
  • url (string) - the Arch coordinates of the repository. This is typically an http:// URL, but could also be the absolute pathname of a local directory instead.
  • version (string) - the category--branch--version to check out. This is the default branch. If a build specifies a different branch, it will be used instead of this.
  • archive (string) - The archive name. If provided, it must match the one that comes from the repository. If not, the repository's default will be used.
Overrides: process.buildstep.BuildStep.__init__

computeSourceRevision(self, changes)

source code 

Each subclass must implement this method to do something more precise than -rHEAD every time. For version control systems that use repository-wide change numbers (SVN, P4), this can simply take the maximum such number from all the changes involved in this build. For systems that do not (CVS), it needs to create a timestamp based upon the latest Change, the Build's treeStableTimer, and an optional self.checkoutDelay value.

Overrides: Source.computeSourceRevision
(inherited documentation)