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

Side by Side Diff: trychange.py

Issue 119244: Add git-cl and git-try stubs. (Closed)
Patch Set: Created 11 years, 6 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
« git-cl ('K') | « git-try ('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 sys 17 import sys
18 import tempfile 18 import tempfile
19 import traceback 19 import traceback
20 import urllib 20 import urllib
21 import upload
21 22
22 import gcl 23 import gcl
23 import gclient 24 import gclient
24 25
25 __version__ = '1.1' 26 __version__ = '1.1'
26 27
27 28
28 # Constants 29 # Constants
29 HELP_STRING = "Sorry, Tryserver is not available." 30 HELP_STRING = "Sorry, Tryserver is not available."
30 SCRIPT_PATH = os.path.join('tools', 'tryserver', 'tryserver.py') 31 SCRIPT_PATH = os.path.join('tools', 'tryserver', 'tryserver.py')
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 if patch_name == 'Unnamed': 498 if patch_name == 'Unnamed':
498 print "Note: use --name NAME to change the try's name." 499 print "Note: use --name NAME to change the try's name."
499 except (InvalidScript, NoTryServerAccess), e: 500 except (InvalidScript, NoTryServerAccess), e:
500 if swallow_exception: 501 if swallow_exception:
501 return 502 return
502 print e 503 print e
503 504
504 505
505 if __name__ == "__main__": 506 if __name__ == "__main__":
506 TryChange(None, None, False) 507 TryChange(None, None, False)
OLDNEW
« git-cl ('K') | « git-try ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698