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

Side by Side Diff: trychange.py

Issue 2250573002: Change default codereview instance to one we maintain. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: typo Created 4 years, 4 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 | « git_cl.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/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/git repository or by directly 7 the try server by either writting to a svn/git repository or by directly
8 connecting to the server by HTTP. 8 connecting to the server by HTTP.
9 """ 9 """
10 10
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 group = optparse.OptionGroup(parser, "Patch to run") 944 group = optparse.OptionGroup(parser, "Patch to run")
945 group.add_option("-f", "--file", default=[], dest="files", 945 group.add_option("-f", "--file", default=[], dest="files",
946 metavar="FILE", action="append", 946 metavar="FILE", action="append",
947 help="Use many times to list the files to include in the " 947 help="Use many times to list the files to include in the "
948 "try, relative to the repository root") 948 "try, relative to the repository root")
949 group.add_option("--diff", 949 group.add_option("--diff",
950 help="File containing the diff to try") 950 help="File containing the diff to try")
951 group.add_option("--url", 951 group.add_option("--url",
952 help="Url where to grab a patch, e.g. " 952 help="Url where to grab a patch, e.g. "
953 "http://example.com/x.diff") 953 "http://example.com/x.diff")
954 group.add_option("-R", "--rietveld_url", default="codereview.appspot.com", 954 group.add_option("-R", "--rietveld_url", default="codereview.chromium.org",
955 metavar="URL", 955 metavar="URL",
956 help="Has 2 usages, both refer to the rietveld instance: " 956 help="Has 2 usages, both refer to the rietveld instance: "
957 "Specify which code review patch to use as the try job " 957 "Specify which code review patch to use as the try job "
958 "or rietveld instance to update the try job results " 958 "or rietveld instance to update the try job results "
959 "Default:%default") 959 "Default:%default")
960 group.add_option("--root", 960 group.add_option("--root",
961 help="Root to use for the patch; base subdirectory for " 961 help="Root to use for the patch; base subdirectory for "
962 "patch created in a subdirectory") 962 "patch created in a subdirectory")
963 group.add_option("-p", "--patchlevel", type='int', metavar="LEVEL", 963 group.add_option("-p", "--patchlevel", type='int', metavar="LEVEL",
964 help="Used as -pN parameter to patch") 964 help="Used as -pN parameter to patch")
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 return 1 1256 return 1
1257 except (gclient_utils.Error, subprocess2.CalledProcessError), e: 1257 except (gclient_utils.Error, subprocess2.CalledProcessError), e:
1258 print >> sys.stderr, e 1258 print >> sys.stderr, e
1259 return 1 1259 return 1
1260 return 0 1260 return 0
1261 1261
1262 1262
1263 if __name__ == "__main__": 1263 if __name__ == "__main__":
1264 fix_encoding.fix_encoding() 1264 fix_encoding.fix_encoding()
1265 sys.exit(TryChange(None, None, False)) 1265 sys.exit(TryChange(None, None, False))
OLDNEW
« no previous file with comments | « git_cl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698