Package buildbot :: Package slave :: Module commands :: Class SVN
[hide private]
[frames] | no frames]

Class SVN

source code

Command --+    
          |    
 SourceBase --+
              |
             SVN

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

['svnurl'] (required): the SVN repository string ['username'] Username passed to the svn command ['password'] Password passed to the svn command

Instance Methods [hide private]
 
setup(self, args)
Override this in a subclass to extract items from the args dict.
source code
 
sourcedirIsUpdateable(self) source code
 
doVCUpdate(self) source code
 
doVCFull(self) source code
 
getSvnVersionCommand(self)
Get the (shell) command used to determine SVN revision number of checked-out code
source code
 
parseGotRevision(self)
Override this in a subclass.
source code

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

Inherited from SourceBase (private): _handleGotRevision

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

Inherited from Command (private): _abandonOnFailure, _checkAbandoned, _sendRC

Class Variables [hide private]
  header = 'svn operation'

Inherited from SourceBase: sourcedata

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

Method Details [hide private]

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 
Overrides: SourceBase.sourcedirIsUpdateable

doVCUpdate(self)

source code 
Overrides: SourceBase.doVCUpdate

doVCFull(self)

source code 
Overrides: SourceBase.doVCFull

getSvnVersionCommand(self)

source code 

Get the (shell) command used to determine SVN revision number of checked-out code

return: list of strings, passable as the command argument to ShellCommand

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)