diff options
author | Shawn O. Pearce <sop@google.com> | 2009-04-18 10:59:33 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-04-18 10:59:33 -0700 |
commit | 337fb9c7e9e9806cef81918c1446c3cf4d4833d4 (patch) | |
tree | f5eca7b61c30bedfaf8eaa13671cdf5e61fd8d28 /subcmds/upload.py | |
parent | 9bb961785832356ac7f3f2516d4627cc391a2997 (diff) | |
download | git-repo-337fb9c7e9e9806cef81918c1446c3cf4d4833d4.tar.gz |
Improve the help text for 'repo upload'
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index de3fe857..24bbc7b7 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -38,22 +38,21 @@ class Upload(InteractiveCommand): | |||
38 | %prog [--re --cc] {[<project>]... | --replace <project>} | 38 | %prog [--re --cc] {[<project>]... | --replace <project>} |
39 | """ | 39 | """ |
40 | helpDescription = """ | 40 | helpDescription = """ |
41 | The '%prog' command is used to send changes to the Gerrit code | 41 | The '%prog' command is used to send changes to the Gerrit Code |
42 | review system. It searches for changes in local projects that do | 42 | Review system. It searches for topic branches in local projects |
43 | not yet exist in the corresponding remote repository. If multiple | 43 | that have not yet been published for review. If multiple topic |
44 | changes are found, '%prog' opens an editor to allow the | 44 | branches are found, '%prog' opens an editor to allow the user to |
45 | user to choose which change to upload. After a successful upload, | 45 | select which branches to upload. |
46 | repo prints the URL for the change in the Gerrit code review system. | 46 | |
47 | 47 | '%prog' searches for uploadable changes in all projects listed at | |
48 | '%prog' searches for uploadable changes in all projects listed | 48 | the command line. Projects can be specified either by name, or by |
49 | at the command line. Projects can be specified either by name, or | 49 | a relative or absolute path to the project's local directory. If no |
50 | by a relative or absolute path to the project's local directory. If | 50 | projects are specified, '%prog' will search for uploadable changes |
51 | no projects are specified, '%prog' will search for uploadable | 51 | in all projects listed in the manifest. |
52 | changes in all projects listed in the manifest. | ||
53 | 52 | ||
54 | If the --reviewers or --cc options are passed, those emails are | 53 | If the --reviewers or --cc options are passed, those emails are |
55 | added to the respective list of users, and emails are sent to any | 54 | added to the respective list of users, and emails are sent to any |
56 | new users. Users passed to --reviewers must be already registered | 55 | new users. Users passed as --reviewers must already be registered |
57 | with the code review system, or the upload will fail. | 56 | with the code review system, or the upload will fail. |
58 | 57 | ||
59 | If the --replace option is passed the user can designate which | 58 | If the --replace option is passed the user can designate which |
@@ -83,6 +82,11 @@ or in the .git/config within the project. For example: | |||
83 | [review "http://review.example.com/"] | 82 | [review "http://review.example.com/"] |
84 | autoupload = true | 83 | autoupload = true |
85 | 84 | ||
85 | References | ||
86 | ---------- | ||
87 | |||
88 | Gerrit Code Review: http://code.google.com/p/gerrit/ | ||
89 | |||
86 | """ | 90 | """ |
87 | 91 | ||
88 | def _Options(self, p): | 92 | def _Options(self, p): |