Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: scripts/slave/bot_update.py

Issue 288843003: Let bot_update recipe api force usage of bot_update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # TODO(hinoka): Use logging. 6 # TODO(hinoka): Use logging.
7 7
8 import cStringIO 8 import cStringIO
9 import codecs 9 import codecs
10 import copy 10 import copy
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 help='Patchset from issue to patch from, if applicable.') 1152 help='Patchset from issue to patch from, if applicable.')
1153 parse.add_option('--patch_url', help='Optional URL to SVN patch.') 1153 parse.add_option('--patch_url', help='Optional URL to SVN patch.')
1154 parse.add_option('--root', help='Repository root.') 1154 parse.add_option('--root', help='Repository root.')
1155 parse.add_option('--rietveld_server', 1155 parse.add_option('--rietveld_server',
1156 default='codereview.chromium.org', 1156 default='codereview.chromium.org',
1157 help='Rietveld server.') 1157 help='Rietveld server.')
1158 parse.add_option('--specs', help='Gcilent spec.') 1158 parse.add_option('--specs', help='Gcilent spec.')
1159 parse.add_option('--master', help='Master name.') 1159 parse.add_option('--master', help='Master name.')
1160 parse.add_option('-f', '--force', action='store_true', 1160 parse.add_option('-f', '--force', action='store_true',
1161 help='Bypass check to see if we want to be run. ' 1161 help='Bypass check to see if we want to be run. '
1162 'Should ONLY be used locally.') 1162 'Should ONLY be used locally or by smart recipes.')
1163 parse.add_option('--revision_mapping', 1163 parse.add_option('--revision_mapping',
1164 help='{"path/to/repo/": "property_name"}') 1164 help='{"path/to/repo/": "property_name"}')
1165 parse.add_option('--revision_mapping_file', 1165 parse.add_option('--revision_mapping_file',
1166 help=('Same as revision_mapping, except its a path to a json' 1166 help=('Same as revision_mapping, except its a path to a json'
1167 ' file containing that format.')) 1167 ' file containing that format.'))
1168 parse.add_option('--revision-mapping', # Backwards compatability. 1168 parse.add_option('--revision-mapping', # Backwards compatability.
1169 help='DEPRECATED, use "revision_mapping" instead') 1169 help='DEPRECATED, use "revision_mapping" instead')
1170 parse.add_option('--revision', action='append', default=[], 1170 parse.add_option('--revision', action='append', default=[],
1171 help='Revision to check out. Can be an SVN revision number, ' 1171 help='Revision to check out. Can be an SVN revision number, '
1172 'git hash, or any form of git ref. Can prepend ' 1172 'git hash, or any form of git ref. Can prepend '
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 ) 1384 )
1385 all_threads.append(thr) 1385 all_threads.append(thr)
1386 1386
1387 # Sort of wait for all telemetry threads to finish. 1387 # Sort of wait for all telemetry threads to finish.
1388 for thr in all_threads: 1388 for thr in all_threads:
1389 thr.join(5) 1389 thr.join(5)
1390 1390
1391 1391
1392 if __name__ == '__main__': 1392 if __name__ == '__main__':
1393 sys.exit(main()) 1393 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/bot_update/api.py » ('j') | scripts/slave/recipe_modules/bot_update/api.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698