mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 18:19:42 +00:00
Make empty changelog fatal error
The prep_doc_mr.py script of the bind9-qa repo needs a way to know that gitchangelog.py did not produce entries. In the case of release notes, it dies with "No commits matching given revlist". For changelog entries it used to warn about "Empty changelog", but did not return non-zero exit code. (cherry picked from commit 4d0ae4068f07a0f1a62b11629d3f26d798bddb45)
This commit is contained in:
parent
997b443d77
commit
5fa13bedf5
@ -1889,8 +1889,7 @@ def changelog(
|
|||||||
try:
|
try:
|
||||||
first_version = next(versions)
|
first_version = next(versions)
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
warn("Empty changelog. No commits were elected to be used as entry.")
|
die("Empty changelog. No commits were elected to be used as entry.")
|
||||||
data["versions"] = []
|
|
||||||
else:
|
else:
|
||||||
data["versions"] = itertools.chain([first_version], versions)
|
data["versions"] = itertools.chain([first_version], versions)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user