Remove upstreams from projects.yaml

And update the normalization script to do so.

Change-Id: Ia204da5e71e53d8175bc74e957b33db367b58ab4
This commit is contained in:
James E. Blair 2015-03-05 15:57:58 -08:00 committed by Andreas Jaeger
parent 91bf99ffd3
commit dfe8b92214
2 changed files with 5 additions and 373 deletions

File diff suppressed because it is too large Load Diff

5
tools/normalize_projects_yaml.py Normal file → Executable file
View File

@ -90,6 +90,11 @@ def main():
data = yaml.load(open('gerrit/projects.yaml'))
for project in data:
if ('upstream' in project and
'track-upstream' not in project.get('options', [])):
del project['upstream']
with open('gerrit/projects.yaml', 'w') as out:
out.write(yaml.dump(data, default_flow_style=False,
Dumper=IndentedDumper, width=80))