LUCENE-7155: Script addVersion.py does not detect the new naming convention for bugfix branches

This commit is contained in:
Jan Høydahl 2016-03-31 15:35:48 +02:00
parent d08f327a7f
commit 6e446c0b92
1 changed files with 2 additions and 2 deletions

View File

@ -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')