Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Side by Side Diff: trychange.py

Issue 207007: Add missing import from r26426.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/trychange_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
11 import datetime 11 import datetime
12 import getpass 12 import getpass
13 import logging 13 import logging
14 import optparse 14 import optparse
15 import os 15 import os
16 import shutil 16 import shutil
17 import socket 17 import socket
18 import sys 18 import sys
19 import tempfile 19 import tempfile
20 import traceback 20 import traceback
21 import urllib 21 import urllib
22 22
23 import gcl 23 import gcl
24 import gclient 24 import gclient
25 import gclient_scm
25 import upload 26 import upload
26 27
27 __version__ = '1.1.1' 28 __version__ = '1.1.1'
28 29
29 30
30 # Constants 31 # Constants
31 HELP_STRING = "Sorry, Tryserver is not available." 32 HELP_STRING = "Sorry, Tryserver is not available."
32 USAGE = r"""%prog [options] 33 USAGE = r"""%prog [options]
33 34
34 Client-side script to send a try job to the try server. It communicates to 35 Client-side script to send a try job to the try server. It communicates to
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 if patch_name == 'Unnamed': 532 if patch_name == 'Unnamed':
532 print "Note: use --name NAME to change the try's name." 533 print "Note: use --name NAME to change the try's name."
533 except (InvalidScript, NoTryServerAccess), e: 534 except (InvalidScript, NoTryServerAccess), e:
534 if swallow_exception: 535 if swallow_exception:
535 return 536 return
536 print e 537 print e
537 538
538 539
539 if __name__ == "__main__": 540 if __name__ == "__main__":
540 TryChange(None, None, False) 541 TryChange(None, None, False)
OLDNEW
« no previous file with comments | « tests/trychange_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698