mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-13 15:00:15 +01:00
fix: vcs issues
This commit is contained in:
parent
4cd92526e2
commit
c6f20fb86d
1 changed files with 14 additions and 14 deletions
|
|
@ -21,22 +21,22 @@ VCS_SUBCOMMANDS_BY_NAME = {
|
||||||
'git': {
|
'git': {
|
||||||
'is_usable': "git rev-parse --git-dir",
|
'is_usable': "git rev-parse --git-dir",
|
||||||
'fetch' : "git fetch",
|
'fetch' : "git fetch",
|
||||||
'push_tag' : "git push {tag}",
|
|
||||||
'commit' : "git commit --file {path}",
|
|
||||||
'status' : "git status --porcelain",
|
|
||||||
'tag' : "git tag --annotate {name} --message '{name}'",
|
|
||||||
'add_path' : "git add --update {path}",
|
|
||||||
'ls_tags' : "git tag --list v*",
|
'ls_tags' : "git tag --list v*",
|
||||||
|
'status' : "git status --porcelain",
|
||||||
|
'add_path' : "git add --update {path}",
|
||||||
|
'commit' : "git commit --file {path}",
|
||||||
|
'tag' : "git tag --annotate {tag} --message '{tag}'",
|
||||||
|
'push_tag' : "git push {tag}",
|
||||||
},
|
},
|
||||||
'hg': {
|
'hg': {
|
||||||
'is_usable': "hg root",
|
'is_usable': "hg root",
|
||||||
'fetch' : "hg pull",
|
'fetch' : "hg pull",
|
||||||
'push_tag' : "hg push {tag}",
|
|
||||||
'commit' : "hg commit --logfile",
|
|
||||||
'status' : "hg status -mard",
|
|
||||||
'tag' : "hg tag {name} --message '{name}'",
|
|
||||||
'add_path' : "hg add {path}",
|
|
||||||
'ls_tags' : "hg tags",
|
'ls_tags' : "hg tags",
|
||||||
|
'status' : "hg status -mard",
|
||||||
|
'add_path' : "hg add {path}",
|
||||||
|
'commit' : "hg commit --logfile",
|
||||||
|
'tag' : "hg tag {tag} --message '{tag}'",
|
||||||
|
'push_tag' : "hg push {tag}",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -108,11 +108,11 @@ class VCS:
|
||||||
self('commit', env=env, path=tmp_file.name)
|
self('commit', env=env, path=tmp_file.name)
|
||||||
os.unlink(tmp_file.name)
|
os.unlink(tmp_file.name)
|
||||||
|
|
||||||
def tag(self, name) -> None:
|
def tag(self, tag_name) -> None:
|
||||||
self('tag', name=name)
|
self('tag', tag=tag_name)
|
||||||
|
|
||||||
def push(self) -> None:
|
def push(self, tag_name) -> None:
|
||||||
self('push')
|
self('push', tag=tag_name)
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f"VCS(name='{self.name}')"
|
return f"VCS(name='{self.name}')"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue