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

Side by Side Diff: trychange.py

Issue 97983004: Add one more example to "git try -h" output. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | 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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 EPILOG = """ 46 EPILOG = """
47 Examples: 47 Examples:
48 Send a patch directly from rietveld: 48 Send a patch directly from rietveld:
49 %(prog)s -R codereview.chromium.org/1337 49 %(prog)s -R codereview.chromium.org/1337
50 --email recipient@example.com --root src 50 --email recipient@example.com --root src
51 51
52 Try a change against a particular revision: 52 Try a change against a particular revision:
53 %(prog)s -r 123 53 %(prog)s -r 123
54 54
55 Try a change including changes to a sub repository:
56 %(prog)s -s third_party/WebKit
57
55 A git patch off a web site (git inserts a/ and b/) and fix the base dir: 58 A git patch off a web site (git inserts a/ and b/) and fix the base dir:
56 %(prog)s --url http://url/to/patch.diff --patchlevel 1 --root src 59 %(prog)s --url http://url/to/patch.diff --patchlevel 1 --root src
57 60
58 Use svn to store the try job, specify an alternate email address and use a 61 Use svn to store the try job, specify an alternate email address and use a
59 premade diff file on the local drive: 62 premade diff file on the local drive:
60 %(prog)s --email user@example.com 63 %(prog)s --email user@example.com
61 --svn_repo svn://svn.chromium.org/chrome-try/try --diff foo.diff 64 --svn_repo svn://svn.chromium.org/chrome-try/try --diff foo.diff
62 65
63 Running only on a 'mac' slave with revision 123 and clobber first; specify 66 Running only on a 'mac' slave with revision 123 and clobber first; specify
64 manually the 3 source files to use for the try job: 67 manually the 3 source files to use for the try job:
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 return 1 936 return 1
934 except (gclient_utils.Error, subprocess2.CalledProcessError), e: 937 except (gclient_utils.Error, subprocess2.CalledProcessError), e:
935 print >> sys.stderr, e 938 print >> sys.stderr, e
936 return 1 939 return 1
937 return 0 940 return 0
938 941
939 942
940 if __name__ == "__main__": 943 if __name__ == "__main__":
941 fix_encoding.fix_encoding() 944 fix_encoding.fix_encoding()
942 sys.exit(TryChange(None, None, False)) 945 sys.exit(TryChange(None, None, False))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698