Skip to content
Snippets Groups Projects
Commit e4007eb6 authored by Dan Guest's avatar Dan Guest Committed by Walter Lampl
Browse files

Insist that branches-of-interest all have a match

Insist that branches-of-interest all have a match
parent 5fe4d4e6
No related branches found
No related tags found
1 merge request!67801Insist that branches-of-interest all have a match
......@@ -318,7 +318,10 @@ def main(args):
good_leaves = set()
for regex in args.branches_of_interest:
test = re.compile(regex)
good_leaves.update(l for l in leaves if test.match(l))
matches = {l for l in leaves if test.match(l)}
if not matches:
msg.error(f'no match for branch of interest: {regex}')
good_leaves.update(matches)
return good_leaves
skipset = frozenset(args.ignore_leaves)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment