From 487da6d086b341808147c71e8dd1eb1f57371ea6 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Wed, 24 Apr 2024 12:44:34 -0400 Subject: [PATCH] BUG: AuthorsChangesSince.py support both single and multiline Versions can be available in the *.remote.cmake files of the form: GIT_TAG abc123 and GIT_TAG abc123) in the history. Support both. --- Utilities/Maintenance/AuthorsChangesSince.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Utilities/Maintenance/AuthorsChangesSince.py b/Utilities/Maintenance/AuthorsChangesSince.py index 8b659f0a5f7..21f99bd3a6d 100755 --- a/Utilities/Maintenance/AuthorsChangesSince.py +++ b/Utilities/Maintenance/AuthorsChangesSince.py @@ -74,10 +74,16 @@ def remote_repository(remote_spec): def remote_tag(remote_spec): + use_next_line = False for line in remote_spec.split("\n"): + if use_next_line: + return line.split(')')[0].strip() split = line.split() try: tag_index = split.index("GIT_TAG") + if len(split) < 2: + use_next_line = True + continue return split[tag_index + 1].strip() except ValueError: continue