mirror of
https://github.com/davidism/modify-repos.git
synced 2025-09-01 05:27:28 +00:00
parent
b0b6e11dcc
commit
353ba6a098
3 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
Unreleased
|
Unreleased
|
||||||
|
|
||||||
- Submit is disabled by default.
|
- Submit is disabled by default.
|
||||||
|
- Error if target and work branch are the same.
|
||||||
|
|
||||||
## Version 0.1.0
|
## Version 0.1.0
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,11 @@ class Script[RepoType: Repo]:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, *, submit: bool = False) -> None:
|
def __init__(self, *, submit: bool = False) -> None:
|
||||||
""" """
|
if self.target == self.branch:
|
||||||
|
raise ValueError(
|
||||||
|
"Work branch name must be different than target branch name."
|
||||||
|
)
|
||||||
|
|
||||||
source_file = inspect.getsourcefile(self.__class__)
|
source_file = inspect.getsourcefile(self.__class__)
|
||||||
|
|
||||||
if source_file is None:
|
if source_file is None:
|
||||||
|
|
2
uv.lock
generated
2
uv.lock
generated
|
@ -335,7 +335,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "modify-repos"
|
name = "modify-repos"
|
||||||
version = "0.1.0"
|
version = "0.1.1.dev0"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "click" },
|
{ name = "click" },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue