| 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 collections | 10 import collections |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 parse.add_option('--patch_url', help='Optional URL to SVN patch.') | 1407 parse.add_option('--patch_url', help='Optional URL to SVN patch.') |
| 1408 parse.add_option('--root', dest='patch_root', | 1408 parse.add_option('--root', dest='patch_root', |
| 1409 help='DEPRECATED: Use --patch_root.') | 1409 help='DEPRECATED: Use --patch_root.') |
| 1410 parse.add_option('--patch_root', help='Directory to patch on top of.') | 1410 parse.add_option('--patch_root', help='Directory to patch on top of.') |
| 1411 parse.add_option('--rietveld_server', | 1411 parse.add_option('--rietveld_server', |
| 1412 default='codereview.chromium.org', | 1412 default='codereview.chromium.org', |
| 1413 help='Rietveld server.') | 1413 help='Rietveld server.') |
| 1414 parse.add_option('--gerrit_repo', | 1414 parse.add_option('--gerrit_repo', |
| 1415 help='Gerrit repository to pull the ref from.') | 1415 help='Gerrit repository to pull the ref from.') |
| 1416 parse.add_option('--gerrit_ref', help='Gerrit ref to apply.') | 1416 parse.add_option('--gerrit_ref', help='Gerrit ref to apply.') |
| 1417 parse.add_option('--gerrit_rebase_patch_ref', action='store_true', | 1417 parse.add_option('--gerrit_no_rebase_patch_ref', action='store_true', |
| 1418 help='Rebase Gerrit patch ref after of checking it out.') | 1418 help='Bypass rebase of Gerrit patch ref after checkout.') |
| 1419 parse.add_option('--gerrit_no_reset', action='store_true', | 1419 parse.add_option('--gerrit_no_reset', action='store_true', |
| 1420 help='Bypass calling reset after applying a gerrit ref.') | 1420 help='Bypass calling reset after applying a gerrit ref.') |
| 1421 parse.add_option('--specs', help='Gcilent spec.') | 1421 parse.add_option('--specs', help='Gcilent spec.') |
| 1422 parse.add_option('--master', | 1422 parse.add_option('--master', |
| 1423 help='Master name. If specified and it is not in ' | 1423 help='Master name. If specified and it is not in ' |
| 1424 'bot_update\'s whitelist, bot_update will be noop.') | 1424 'bot_update\'s whitelist, bot_update will be noop.') |
| 1425 parse.add_option('-f', '--force', action='store_true', | 1425 parse.add_option('-f', '--force', action='store_true', |
| 1426 help='Bypass check to see if we want to be run. ' | 1426 help='Bypass check to see if we want to be run. ' |
| 1427 'Should ONLY be used locally or by smart recipes.') | 1427 'Should ONLY be used locally or by smart recipes.') |
| 1428 parse.add_option('--revision_mapping', | 1428 parse.add_option('--revision_mapping', |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 target_os_only=specs.get('target_os_only', False), | 1570 target_os_only=specs.get('target_os_only', False), |
| 1571 | 1571 |
| 1572 # Then, pass in information about how to patch. | 1572 # Then, pass in information about how to patch. |
| 1573 patch_root=options.patch_root, | 1573 patch_root=options.patch_root, |
| 1574 issue=options.issue, | 1574 issue=options.issue, |
| 1575 patchset=options.patchset, | 1575 patchset=options.patchset, |
| 1576 patch_url=options.patch_url, | 1576 patch_url=options.patch_url, |
| 1577 rietveld_server=options.rietveld_server, | 1577 rietveld_server=options.rietveld_server, |
| 1578 gerrit_repo=options.gerrit_repo, | 1578 gerrit_repo=options.gerrit_repo, |
| 1579 gerrit_ref=options.gerrit_ref, | 1579 gerrit_ref=options.gerrit_ref, |
| 1580 gerrit_rebase_patch_ref=options.gerrit_rebase_patch_ref, | 1580 gerrit_rebase_patch_ref=not options.gerrit_no_rebase_patch_ref, |
| 1581 revision_mapping=options.revision_mapping, | 1581 revision_mapping=options.revision_mapping, |
| 1582 apply_issue_email_file=options.apply_issue_email_file, | 1582 apply_issue_email_file=options.apply_issue_email_file, |
| 1583 apply_issue_key_file=options.apply_issue_key_file, | 1583 apply_issue_key_file=options.apply_issue_key_file, |
| 1584 | 1584 |
| 1585 # For official builders. | 1585 # For official builders. |
| 1586 buildspec=buildspec, | 1586 buildspec=buildspec, |
| 1587 gyp_env=options.gyp_env, | 1587 gyp_env=options.gyp_env, |
| 1588 runhooks=not options.no_runhooks, | 1588 runhooks=not options.no_runhooks, |
| 1589 | 1589 |
| 1590 # Finally, extra configurations such as shallowness of the clone. | 1590 # Finally, extra configurations such as shallowness of the clone. |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 except Exception: | 1735 except Exception: |
| 1736 # Unexpected failure. | 1736 # Unexpected failure. |
| 1737 emit_flag(options.flag_file) | 1737 emit_flag(options.flag_file) |
| 1738 raise | 1738 raise |
| 1739 else: | 1739 else: |
| 1740 emit_flag(options.flag_file) | 1740 emit_flag(options.flag_file) |
| 1741 | 1741 |
| 1742 | 1742 |
| 1743 if __name__ == '__main__': | 1743 if __name__ == '__main__': |
| 1744 sys.exit(main()) | 1744 sys.exit(main()) |
| OLD | NEW |