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

Class Darcs

source code

process.properties.PropertiesMixin --+            
                                     |            
           process.buildstep.BuildStep --+        
                                         |        
        process.buildstep.LoggingBuildStep --+    
                                             |    
                                        Source --+
                                                 |
                                                Darcs

Check out a source tree from a Darcs repository at 'repourl'.

Darcs has no concept of file modes. This means the eXecute-bit will be cleared on all source files. As a result, you may need to invoke configuration scripts with something like:

s(step.Configure, command=['/bin/sh', './configure'])

Instance Methods
 
__init__(self, repourl=None, baseURL=None, defaultBranch=None, **kwargs) source code
 
startVC(self, branch, revision, patch) source code

Inherited from Source: commandComplete, computeSourceRevision, describe, getRepository, setDefaultWorkdir, setStepStatus, start

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

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

Inherited from process.properties.PropertiesMixin: __providedBy__, getProperties, getProperty, hasProperty, has_key, render, setProperty

Class Variables
  name = 'darcs'
  renderables = ['repourl', 'baseURL']

Inherited from Source: branch, description, descriptionDone, flunkOnFailure, haltOnFailure, notReally

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

Inherited from process.buildstep.BuildStep: __implemented__, alwaysRun, build, doStepIf, flunkOnWarnings, hideStepIf, locks, progress, set_runtime_properties, step_status, useProgress, warnOnFailure, warnOnWarnings

Method Details

__init__(self, repourl=None, baseURL=None, defaultBranch=None, **kwargs)
(Constructor)

source code 
Parameters:
  • repourl (string) - the URL which points at the Darcs repository. This is used as the default branch. Using repourl does not enable builds of alternate branches: use baseURL to enable this. Use either repourl or baseURL, not both.
  • baseURL - if branches are enabled, this is the base URL to which a branch name will be appended. It should probably end in a slash. Use exactly one of repourl and baseURL.
  • defaultBranch - if branches are enabled, this is the branch to use if the Build does not specify one explicitly. It will simply be appended to baseURL and the result handed to the 'darcs pull' command.
Overrides: process.buildstep.BuildStep.__init__