hg
Mercurial source control management.
Attributes¶
Classes¶
Mercurial
¶
Mercurial(config: SCMConfig)
Mercurial source control management.
Methods:¶
assert_nondirty
staticmethod
¶
assert_nondirty() -> None
Assert that the working directory is clean.
commit_and_tag
¶
commit_and_tag(files: List[Pathlike], context: MutableMapping, dry_run: bool = False) -> None
Commit and tag files to the repository using the configuration.
tag
staticmethod
¶
tag(name: str, sign: bool = False, message: Optional[str] = None) -> None
Create a tag of the new_version in VCS.
If only name is given, bumpversion uses a lightweight tag. Otherwise, it uses an annotated tag.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
The name of the tag
TYPE:
|
sign
|
True to sign the tag
TYPE:
|
message
|
A optional message to annotate the tag. |
| RAISES | DESCRIPTION |
|---|---|
SignedTagsError
|
If |
Functions:¶
commit_info
¶
commit_info(config: SCMConfig) -> dict
parse_commit_log
¶
parse_commit_log(log_string: str, config: SCMConfig) -> dict
Parse the commit log string.
tag
¶
tag(name: str, sign: bool = False, message: Optional[str] = None) -> None
Create a tag of the new_version in VCS.
If only name is given, bumpversion uses a lightweight tag. Otherwise, it uses an annotated tag.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
The name of the tag
TYPE:
|
sign
|
True to sign the tag
TYPE:
|
message
|
A optional message to annotate the tag. |
| RAISES | DESCRIPTION |
|---|---|
SignedTagsError
|
If |