Update documentation and help text for the review ssh command

The review command can be applied to multiple changes, but the
help text is written in singular tense.

Update the documentation and help text accordingly, and also fix
a couple of other typos.

Change-Id: I9bceecbc7a7683b0a9483362419268742654c6e2
This commit is contained in:
David Pursehouse
2012-06-27 16:37:40 +09:00
committed by Claes Elgemark
parent 6735702d9d
commit 5861954f86
2 changed files with 14 additions and 13 deletions

View File

@@ -52,7 +52,7 @@ OPTIONS
--force-message:: --force-message::
Option which allows Gerrit to publish the --message, even Option which allows Gerrit to publish the --message, even
when the labels could not be applied due to change being when the labels could not be applied due to the change being
closed). closed).
+ +
Used by some scripts/CI-systems, where the results (or links Used by some scripts/CI-systems, where the results (or links
@@ -69,11 +69,11 @@ successfully, even if the label could not be changed.
complete listing of supported approval categories and values. complete listing of supported approval categories and values.
--abandon:: --abandon::
Abandon the specified patch set(s). Abandon the specified change(s).
(option is mutually exclusive with --submit and --restore) (option is mutually exclusive with --submit and --restore)
--restore:: --restore::
Restore the specified abandoned patch set(s). Restore the specified abandoned change(s).
(option is mutually exclusive with --abandon) (option is mutually exclusive with --abandon)
--submit:: --submit::

View File

@@ -68,7 +68,8 @@ public class ReviewCommand extends SshCommand {
private final Set<PatchSet.Id> patchSetIds = new HashSet<PatchSet.Id>(); private final Set<PatchSet.Id> patchSetIds = new HashSet<PatchSet.Id>();
@Argument(index = 0, required = true, multiValued = true, metaVar = "{COMMIT | CHANGE,PATCHSET}", usage = "patch to review") @Argument(index = 0, required = true, multiValued = true, metaVar = "{COMMIT | CHANGE,PATCHSET}",
usage = "list of commits or patch sets to review")
void addPatchSetId(final String token) { void addPatchSetId(final String token) {
try { try {
patchSetIds.addAll(parsePatchSetId(token)); patchSetIds.addAll(parsePatchSetId(token));
@@ -79,29 +80,29 @@ public class ReviewCommand extends SshCommand {
} }
} }
@Option(name = "--project", aliases = "-p", usage = "project containing the patch set") @Option(name = "--project", aliases = "-p", usage = "project containing the specified patch set(s)")
private ProjectControl projectControl; private ProjectControl projectControl;
@Option(name = "--message", aliases = "-m", usage = "cover message to publish on change", metaVar = "MESSAGE") @Option(name = "--message", aliases = "-m", usage = "cover message to publish on change(s)", metaVar = "MESSAGE")
private String changeComment; private String changeComment;
@Option(name = "--abandon", usage = "abandon the patch set") @Option(name = "--abandon", usage = "abandon the specified change(s)")
private boolean abandonChange; private boolean abandonChange;
@Option(name = "--restore", usage = "restore an abandoned the patch set") @Option(name = "--restore", usage = "restore the specified abandoned change(s)")
private boolean restoreChange; private boolean restoreChange;
@Option(name = "--submit", aliases = "-s", usage = "submit the patch set") @Option(name = "--submit", aliases = "-s", usage = "submit the specified patch set(s)")
private boolean submitChange; private boolean submitChange;
@Option(name = "--force-message", usage = "publish the message, " @Option(name = "--force-message", usage = "publish the message, "
+ "even if the label score cannot be applied due to change being closed") + "even if the label score cannot be applied due to the change being closed")
private boolean forceMessage = false; private boolean forceMessage = false;
@Option(name = "--publish", usage = "publish a draft patch set") @Option(name = "--publish", usage = "publish the specified draft patch set(s)")
private boolean publishPatchSet; private boolean publishPatchSet;
@Option(name = "--delete", usage = "delete a draft patch set") @Option(name = "--delete", usage = "delete the specified draft patch set(s)")
private boolean deleteDraftPatchSet; private boolean deleteDraftPatchSet;
@Inject @Inject
@@ -266,7 +267,7 @@ public class ReviewCommand extends SshCommand {
errMsg += "rule error"; errMsg += "rule error";
break; break;
case NOT_A_DRAFT: case NOT_A_DRAFT:
errMsg += "change is not a draft"; errMsg += "change/patch set is not a draft";
break; break;
case GIT_ERROR: case GIT_ERROR:
errMsg += "error writing change to git repository"; errMsg += "error writing change to git repository";