Block stable/feature branch for new project imports

When importing projects, check that they do not contain a simple
"stable" branch as that will block creation of "stable/RELEASE" branches
like "stable/mitaka".
Similar for "feature".

Change-Id: Ia190fdbddf9029149b54e686aa0e82fe040b6733
This commit is contained in:
Andreas Jaeger 2016-04-21 16:49:38 +02:00
parent d70aaa721b
commit 2a6bf90fbc

View File

@ -50,6 +50,16 @@ def check_repo(repo_path):
else: else:
found_errors += 1 found_errors += 1
print(" Error: No master branch exists") print(" Error: No master branch exists")
if 'origin/stable' in branches:
found_errors += 1
print(" A branch named 'stable' exists, this will break future\n")
print(" creation of stable/RELEASE branches.\n")
print(" Delete the branch on your upstream project.")
if 'origin/feature' in branches:
found_errors += 1
print(" A branch named 'feature' exists, this will break future\n")
print(" creation of feature/NAME branches.\n")
print(" Delete the branch on your upstream project.")
if repo.tags: if repo.tags:
print(" Found the following tags:") print(" Found the following tags:")
for tag in repo.tags: for tag in repo.tags: