_docsweeper.version_control#
Module for version control functions.
- class _docsweeper.version_control.VCSCommandSetConfig#
Bases:
NamedTupleConfiguration values for
VCSCommandSet.Holds configuration values that are customizable by clients.
Note
This class is exported publicly as
docsweeper.VCSCommandSetConfig.- merge(other)#
Return a new config with merged values of this config and other.
- Parameters:
other (VCSCommandSetConfig) – entries that are not
Nonein this config are merged into the new one- Returns:
the merged config
- Return type:
- class _docsweeper.version_control.FileRenamedError#
Bases:
ValueErrorRaised when a file was unexpectedly detected to have been renamed.
- class _docsweeper.version_control.VCSCommandSet#
Bases:
ABCEncapsulates all commands needed for a complete version control command set.
Note
This class is exported publicly as
docsweeper.VCSCommandSet.
- class _docsweeper.version_control.GitCommandSet#
Bases:
VCSCommandSetAn implementation of a version control command set for git.
Note
This class is exported publicly as
docsweeper.GitCommandSet.
- class _docsweeper.version_control.MercurialCommandSet#
Bases:
VCSCommandSetAn implementation of a version control command set for mercurial.
Note
This class is exported publicly as
docsweeper.MercurialCommandSet.
- class _docsweeper.version_control.VCSShim#
Bases:
objectA shim between the output of a version control command set and clients.
Encapsulates the low-level commands of a
VCSCommandSetinto a more user-friendly interface.
- _docsweeper.version_control.command_sets: Dict[str, Tuple[Type[VCSCommandSet], VCSCommandSetConfig]] = {'git': (<class '_docsweeper.version_control.GitCommandSet'>, VCSCommandSetConfig(executable=PosixPath('/usr/bin/git'), follow_rename=True)), 'hg': (<class '_docsweeper.version_control.MercurialCommandSet'>, VCSCommandSetConfig(executable=PosixPath('/usr/bin/hg'), follow_rename=True))}#
Dictionary of all supported command sets and their default configuration.
Note
This object is exported publicly as
docsweeper.command_sets.