Helper class for CLI-heavy classes.
Parameters: | bits – list of command and args. See subprocess docs |
---|
Base class for contribution backends.
The main purpose of this base class is to define the API.
Classmethod that checks if a given repository URL is supported by this backend.
Returns the contents of a file as it is in the specified branch.
Pushes a branch upstream.
Saves the file in the specified branch.
Base for VCS Classes. Built on top of the BaseCLI.
Returns a list of VCSVersion objects. See VCSVersion for more information.
Set the state to the given identifier.
If identifier is None, checkout to the latest revision.
The type and format of identifier may change from VCS to VCS, so each backend is responsible to understand it’s identifiers.
Returns a contribution backend or None for this repository. The backend is detected via the repository URL.
Returns a list of VCSVersion objects. See VCSVersion for more information.
If self.working_dir is already a valid local copy of the repository, update the repository, else create a new local copy of the repository.
Transient object to encapsulate a projects stuff
Represents a Version (tag or branch) in a VCS.
This class should only be instantiated in BaseVCS subclasses.
It can act as a context manager to temporarily switch to this tag (eg to build docs for this tag).