| OLD | NEW |
| 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 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 help='Patchset from issue to patch from, if applicable.') | 1158 help='Patchset from issue to patch from, if applicable.') |
| 1159 parse.add_option('--patch_url', help='Optional URL to SVN patch.') | 1159 parse.add_option('--patch_url', help='Optional URL to SVN patch.') |
| 1160 parse.add_option('--root', help='Repository root.') | 1160 parse.add_option('--root', help='Repository root.') |
| 1161 parse.add_option('--rietveld_server', | 1161 parse.add_option('--rietveld_server', |
| 1162 default='codereview.chromium.org', | 1162 default='codereview.chromium.org', |
| 1163 help='Rietveld server.') | 1163 help='Rietveld server.') |
| 1164 parse.add_option('--specs', help='Gcilent spec.') | 1164 parse.add_option('--specs', help='Gcilent spec.') |
| 1165 parse.add_option('--master', help='Master name.') | 1165 parse.add_option('--master', help='Master name.') |
| 1166 parse.add_option('-f', '--force', action='store_true', | 1166 parse.add_option('-f', '--force', action='store_true', |
| 1167 help='Bypass check to see if we want to be run. ' | 1167 help='Bypass check to see if we want to be run. ' |
| 1168 'Should ONLY be used locally.') | 1168 'Should ONLY be used locally or by smart recipes.') |
| 1169 parse.add_option('--revision_mapping', | 1169 parse.add_option('--revision_mapping', |
| 1170 help='{"path/to/repo/": "property_name"}') | 1170 help='{"path/to/repo/": "property_name"}') |
| 1171 parse.add_option('--revision_mapping_file', | 1171 parse.add_option('--revision_mapping_file', |
| 1172 help=('Same as revision_mapping, except its a path to a json' | 1172 help=('Same as revision_mapping, except its a path to a json' |
| 1173 ' file containing that format.')) | 1173 ' file containing that format.')) |
| 1174 parse.add_option('--revision-mapping', # Backwards compatability. | 1174 parse.add_option('--revision-mapping', # Backwards compatability. |
| 1175 help='DEPRECATED, use "revision_mapping" instead') | 1175 help='DEPRECATED, use "revision_mapping" instead') |
| 1176 parse.add_option('--revision', action='append', default=[], | 1176 parse.add_option('--revision', action='append', default=[], |
| 1177 help='Revision to check out. Can be an SVN revision number, ' | 1177 help='Revision to check out. Can be an SVN revision number, ' |
| 1178 'git hash, or any form of git ref. Can prepend ' | 1178 'git hash, or any form of git ref. Can prepend ' |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 ) | 1390 ) |
| 1391 all_threads.append(thr) | 1391 all_threads.append(thr) |
| 1392 | 1392 |
| 1393 # Sort of wait for all telemetry threads to finish. | 1393 # Sort of wait for all telemetry threads to finish. |
| 1394 for thr in all_threads: | 1394 for thr in all_threads: |
| 1395 thr.join(5) | 1395 thr.join(5) |
| 1396 | 1396 |
| 1397 | 1397 |
| 1398 if __name__ == '__main__': | 1398 if __name__ == '__main__': |
| 1399 sys.exit(main()) | 1399 sys.exit(main()) |
| OLD | NEW |