Apache Solr open-source search software
LUCENE-7155: Script addVersion.py does not detect the new naming convention for bugfix branches
Jan Høydahl6e446c0b927f
diff --git a/dev-tools/scripts/scriptutil.py b/dev-tools/scripts/scriptutil.pyindex 6a3bcabe465..10efd2b4229 100644--- a/dev-tools/scripts/scriptutil.py+++ b/dev-tools/scripts/scriptutil.py@@ -107,9 +107,9 @@ def find_branch_type():if branchName == b'master':return 'master'- if branchName.startswith(b'branch_'):+ if re.match(r'branch_(\d+)x', branchName.decode('UTF-8')):return 'stable'- if branchName.startswith(b'lucene_solr_'):+ if re.match(r'branch_(\d+)_(\d+)', branchName.decode('UTF-8')):return 'release'raise Exception('Cannot run bumpVersion.py on feature branch')