mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Tiny improvements to git and version helpers
This commit is contained in:
parent
2aa3d32887
commit
846e4b94fb
@ -93,7 +93,7 @@ class Git:
|
||||
if value == "":
|
||||
return
|
||||
if not self._tag_pattern.match(value):
|
||||
raise Exception(f"last tag {value} doesn't match the pattern")
|
||||
raise ValueError(f"last tag {value} doesn't match the pattern")
|
||||
|
||||
@property
|
||||
def latest_tag(self) -> str:
|
||||
|
@ -150,6 +150,9 @@ class ClickHouseVersion:
|
||||
|
||||
return False
|
||||
|
||||
def __le__(self, other: "ClickHouseVersion") -> bool:
|
||||
return self == other or self < other
|
||||
|
||||
|
||||
class VersionType:
|
||||
LTS = "lts"
|
||||
|
Loading…
Reference in New Issue
Block a user