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

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: Rebase 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
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/bot_update/api.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 parse.add_option('--root', dest='patch_root', 1166 parse.add_option('--root', dest='patch_root',
1167 help='DEPRECATED: Use --patch_root.') 1167 help='DEPRECATED: Use --patch_root.')
1168 parse.add_option('--patch_root', help='Directory to patch on top of.') 1168 parse.add_option('--patch_root', help='Directory to patch on top of.')
1169 parse.add_option('--rietveld_server', 1169 parse.add_option('--rietveld_server',
1170 default='codereview.chromium.org', 1170 default='codereview.chromium.org',
1171 help='Rietveld server.') 1171 help='Rietveld server.')
1172 parse.add_option('--specs', help='Gcilent spec.') 1172 parse.add_option('--specs', help='Gcilent spec.')
1173 parse.add_option('--master', help='Master name.') 1173 parse.add_option('--master', help='Master name.')
1174 parse.add_option('-f', '--force', action='store_true', 1174 parse.add_option('-f', '--force', action='store_true',
1175 help='Bypass check to see if we want to be run. ' 1175 help='Bypass check to see if we want to be run. '
1176 'Should ONLY be used locally.') 1176 'Should ONLY be used locally or by smart recipes.')
1177 parse.add_option('--revision_mapping', 1177 parse.add_option('--revision_mapping',
1178 help='{"path/to/repo/": "property_name"}') 1178 help='{"path/to/repo/": "property_name"}')
1179 parse.add_option('--revision_mapping_file', 1179 parse.add_option('--revision_mapping_file',
1180 help=('Same as revision_mapping, except its a path to a json' 1180 help=('Same as revision_mapping, except its a path to a json'
1181 ' file containing that format.')) 1181 ' file containing that format.'))
1182 parse.add_option('--revision-mapping', # Backwards compatability. 1182 parse.add_option('--revision-mapping', # Backwards compatability.
1183 help='DEPRECATED, use "revision_mapping" instead') 1183 help='DEPRECATED, use "revision_mapping" instead')
1184 parse.add_option('--revision', action='append', default=[], 1184 parse.add_option('--revision', action='append', default=[],
1185 help='Revision to check out. Can be an SVN revision number, ' 1185 help='Revision to check out. Can be an SVN revision number, '
1186 'git hash, or any form of git ref. Can prepend ' 1186 'git hash, or any form of git ref. Can prepend '
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1395 ) 1395 )
1396 all_threads.append(thr) 1396 all_threads.append(thr)
1397 1397
1398 # Sort of wait for all telemetry threads to finish. 1398 # Sort of wait for all telemetry threads to finish.
1399 for thr in all_threads: 1399 for thr in all_threads:
1400 thr.join(5) 1400 thr.join(5)
1401 1401
1402 1402
1403 if __name__ == '__main__': 1403 if __name__ == '__main__':
1404 sys.exit(main()) 1404 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/bot_update/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698