Trees | Indices | Help |
|
---|
|
base.Command --+ | base.SourceBaseCommand --+ | Git
Git specific VC operation. In addition to the arguments handled by SourceBaseCommand, this command reads the following keys: ['repourl'] (required): the upstream GIT repository string ['branch'] (optional): which version (i.e. branch or tag) to retrieve. Default: "master". ['submodules'] (optional): whether to initialize and update submodules. Default: False. ['ignore_ignores'] (optional): ignore ignores when purging changes (default true) ['reference'] (optional): use this reference repository to fetch objects. ['gerrit_branch'] (optional): which virtual branch to retrieve. ['progress'] (optional): have git output progress markers, avoiding timeouts for long fetches; requires Git 1.7.2 or later. ['shallow'] (optional): if true, use shallow clones that do not also fetch history
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
header =
|
|
Inherited from Inherited from |
Method Details |
Override this in a subclass to extract items from the args dict.
|
Returns True if the tree can be updated.
|
|
Override this in a subclass if you want to detect unrecoverable checkout errors where clobbering the repo wouldn't help, and stop the current VC chain before it clobbers the repo for future builds. Use 'raise AbandonChain' to pass up a halt if you do detect such.
|
Returns a deferred with the steps to update a checkout.
|
Returns a deferred with the steps to do a fresh checkout.
|
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.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 25 19:40:36 2012 | http://epydoc.sourceforge.net |