OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 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 21 matching lines...) Expand all Loading... |
32 try: | 32 try: |
33 import breakpad # pylint: disable=W0611 | 33 import breakpad # pylint: disable=W0611 |
34 except ImportError: | 34 except ImportError: |
35 pass | 35 pass |
36 | 36 |
37 try: | 37 try: |
38 import gcl | 38 import gcl |
39 except ImportError: | 39 except ImportError: |
40 gcl = None | 40 gcl = None |
41 | 41 |
42 import fix_encoding | |
43 import gclient_utils | 42 import gclient_utils |
44 import scm | 43 import scm |
45 | 44 |
46 __version__ = '1.2' | 45 __version__ = '1.2' |
47 | 46 |
48 | 47 |
49 # Constants | 48 # Constants |
50 HELP_STRING = "Sorry, Tryserver is not available." | 49 HELP_STRING = "Sorry, Tryserver is not available." |
51 USAGE = r"""%prog [options] | 50 USAGE = r"""%prog [options] |
52 | 51 |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 return 1 | 762 return 1 |
764 print >> sys.stderr, e | 763 print >> sys.stderr, e |
765 return 1 | 764 return 1 |
766 except gclient_utils.Error, e: | 765 except gclient_utils.Error, e: |
767 print >> sys.stderr, e | 766 print >> sys.stderr, e |
768 return 1 | 767 return 1 |
769 return 0 | 768 return 0 |
770 | 769 |
771 | 770 |
772 if __name__ == "__main__": | 771 if __name__ == "__main__": |
773 fix_encoding.fix_encoding() | |
774 sys.exit(TryChange(None, [], False)) | 772 sys.exit(TryChange(None, [], False)) |
OLD | NEW |