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 """Client-side script to send a try job to the try server. It communicates to | 5 """Client-side script to send a try job to the try server. It communicates to |
6 the try server by either writting to a svn repository or by directly connecting | 6 the try server by either writting to a svn repository or by directly connecting |
7 to the server by HTTP. | 7 to the server by HTTP. |
8 """ | 8 """ |
9 | 9 |
10 | |
11 import datetime | 10 import datetime |
12 import getpass | 11 import getpass |
13 import logging | 12 import logging |
14 import optparse | 13 import optparse |
15 import os | 14 import os |
16 import shutil | 15 import shutil |
17 import socket | 16 import socket |
18 import subprocess | 17 import subprocess |
19 import sys | 18 import sys |
20 import tempfile | 19 import tempfile |
21 import urllib | 20 import urllib |
22 | 21 |
| 22 import breakpad |
| 23 |
23 import gcl | 24 import gcl |
24 import scm | 25 import scm |
25 import presubmit_support | 26 import presubmit_support |
26 import upload | 27 import upload |
27 | 28 |
28 __version__ = '1.1.2' | 29 __version__ = '1.1.2' |
29 | 30 |
30 | 31 |
31 # Constants | 32 # Constants |
32 HELP_STRING = "Sorry, Tryserver is not available." | 33 HELP_STRING = "Sorry, Tryserver is not available." |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 except (InvalidScript, NoTryServerAccess), e: | 561 except (InvalidScript, NoTryServerAccess), e: |
561 if swallow_exception: | 562 if swallow_exception: |
562 return 1 | 563 return 1 |
563 print e | 564 print e |
564 return 1 | 565 return 1 |
565 return 0 | 566 return 0 |
566 | 567 |
567 | 568 |
568 if __name__ == "__main__": | 569 if __name__ == "__main__": |
569 sys.exit(TryChange(None, None, False)) | 570 sys.exit(TryChange(None, None, False)) |
OLD | NEW |