| 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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 # The patch will be applied on top of this directory. | 1101 # The patch will be applied on top of this directory. |
| 1102 '--root_dir', root, | 1102 '--root_dir', root, |
| 1103 # Tell apply_issue how to fetch the patch. | 1103 # Tell apply_issue how to fetch the patch. |
| 1104 '--issue', issue, | 1104 '--issue', issue, |
| 1105 '--server', server, | 1105 '--server', server, |
| 1106 # Always run apply_issue.py, otherwise it would see update.flag | 1106 # Always run apply_issue.py, otherwise it would see update.flag |
| 1107 # and then bail out. | 1107 # and then bail out. |
| 1108 '--force', | 1108 '--force', |
| 1109 # Don't run gclient sync when it sees a DEPS change. | 1109 # Don't run gclient sync when it sees a DEPS change. |
| 1110 '--ignore_deps', | 1110 '--ignore_deps', |
| 1111 # TODO(tandrii): remove after http://crbug.com/537417 is resolved. | |
| 1112 # Temporary enable verbosity to see if Rietveld requests are actually | |
| 1113 # retried. | |
| 1114 '-v', '-v', # = logging.DEBUG level. | |
| 1115 ] | 1111 ] |
| 1116 # Use an oauth key file if specified. | 1112 # Use an oauth key file if specified. |
| 1117 if email_file and key_file: | 1113 if email_file and key_file: |
| 1118 cmd.extend(['--email-file', email_file, '--private-key-file', key_file]) | 1114 cmd.extend(['--email-file', email_file, '--private-key-file', key_file]) |
| 1119 else: | 1115 else: |
| 1120 cmd.append('--no-auth') | 1116 cmd.append('--no-auth') |
| 1121 | 1117 |
| 1122 if patchset: | 1118 if patchset: |
| 1123 cmd.extend(['--patchset', patchset]) | 1119 cmd.extend(['--patchset', patchset]) |
| 1124 if whitelist: | 1120 if whitelist: |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1802 except Exception: | 1798 except Exception: |
| 1803 # Unexpected failure. | 1799 # Unexpected failure. |
| 1804 emit_flag(options.flag_file) | 1800 emit_flag(options.flag_file) |
| 1805 raise | 1801 raise |
| 1806 else: | 1802 else: |
| 1807 emit_flag(options.flag_file) | 1803 emit_flag(options.flag_file) |
| 1808 | 1804 |
| 1809 | 1805 |
| 1810 if __name__ == '__main__': | 1806 if __name__ == '__main__': |
| 1811 sys.exit(main()) | 1807 sys.exit(main()) |
| OLD | NEW |