Skip to content

Commit

Permalink
Changed BaseVCS to SourceCodeManager
Browse files Browse the repository at this point in the history
Just for consistency.
  • Loading branch information
coordt committed Apr 9, 2023
1 parent 6d4179b commit 11c5609
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bumpversion/scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
class SCMInfo:
"""Information about the current source code manager and state."""

tool: Optional[Type["BaseVCS"]] = None
tool: Optional[Type["SourceCodeManager"]] = None
commit_sha: Optional[str] = None
distance_to_latest_tag: Optional[int] = None
current_version: Optional[str] = None
dirty: Optional[bool] = None


class BaseVCS:
class SourceCodeManager:
"""Base class for version control systems."""

_TEST_USABLE_COMMAND: List[str] = []
Expand Down Expand Up @@ -148,7 +148,7 @@ def tag_in_scm(cls, config: "Config", context: ChainMap, dry_run: bool = False)
cls.tag(tag_name, sign_tags, tag_message)


class Git(BaseVCS):
class Git(SourceCodeManager):
"""Git implementation."""

_TEST_USABLE_COMMAND = ["git", "rev-parse", "--git-dir"]
Expand Down Expand Up @@ -236,7 +236,7 @@ def tag(cls, name: str, sign: bool = False, message: Optional[str] = None) -> No
subprocess.check_output(command)


class Mercurial(BaseVCS):
class Mercurial(SourceCodeManager):
"""Mercurial implementation."""

_TEST_USABLE_COMMAND = ["hg", "root"]
Expand Down

0 comments on commit 11c5609

Please sign in to comment.