| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """Client-side script to send a try job to the try server. It communicates to | 6 """Client-side script to send a try job to the try server. It communicates to |
| 7 the try server by either writting to a svn repository or by directly connecting | 7 the try server by either writting to a svn repository or by directly connecting |
| 8 to the server by HTTP. | 8 to the server by HTTP. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 changed_files, | 812 changed_files, |
| 813 options.issue, | 813 options.issue, |
| 814 options.patchset, | 814 options.patchset, |
| 815 options.email) | 815 options.email) |
| 816 options.bot = presubmit_support.DoGetTrySlaves( | 816 options.bot = presubmit_support.DoGetTrySlaves( |
| 817 change, | 817 change, |
| 818 checkouts[0].GetFileNames(), | 818 checkouts[0].GetFileNames(), |
| 819 checkouts[0].checkout_root, | 819 checkouts[0].checkout_root, |
| 820 root_presubmit, | 820 root_presubmit, |
| 821 options.project, | 821 options.project, |
| 822 False, | 822 options.verbose, |
| 823 sys.stdout) | 823 sys.stdout) |
| 824 except ImportError: | 824 except ImportError: |
| 825 pass | 825 pass |
| 826 if options.testfilter: | 826 if options.testfilter: |
| 827 bots = set() | 827 bots = set() |
| 828 for bot in options.bot: | 828 for bot in options.bot: |
| 829 assert ',' not in bot | 829 assert ',' not in bot |
| 830 if bot.endswith(':compile'): | 830 if bot.endswith(':compile'): |
| 831 # Skip over compile-only builders for now. | 831 # Skip over compile-only builders for now. |
| 832 continue | 832 continue |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 return 1 | 866 return 1 |
| 867 except (gclient_utils.Error, subprocess2.CalledProcessError), e: | 867 except (gclient_utils.Error, subprocess2.CalledProcessError), e: |
| 868 print >> sys.stderr, e | 868 print >> sys.stderr, e |
| 869 return 1 | 869 return 1 |
| 870 return 0 | 870 return 0 |
| 871 | 871 |
| 872 | 872 |
| 873 if __name__ == "__main__": | 873 if __name__ == "__main__": |
| 874 fix_encoding.fix_encoding() | 874 fix_encoding.fix_encoding() |
| 875 sys.exit(TryChange(None, None, False)) | 875 sys.exit(TryChange(None, None, False)) |
| OLD | NEW |