SSH-command : set-project

Change a project's settings such as merge-type-strategy, require-
change-id, use-content-merge, project-state  from CLI.

[verse]
'ssh' -p <port> <host> 'gerrit set-project'
  [--description <DESC> | -d <DESC>]
  [--submit-type <TYPE> |  -t <TYPE>]
  [--use|no-contributor-agreements | --ca|nca]
  [--use|no-signed-off-by | --so|nso]
  [--use|no-content-merge]
  [--require|no-change-id | --id|nid]
  [--project-state | --ps]
  <NAME>

Change-Id: I8352ffeda0d3ca7af61d45c44c93b62035e20676
This commit is contained in:
Deniz Türkoglu
2012-05-09 12:43:02 -07:00
parent bbb8e738bb
commit 01c758991c
6 changed files with 297 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ public class ProjectControlHandler extends OptionHandler<ProjectControl> {
final ProjectControl control;
try {
Project.NameKey nameKey = new Project.NameKey(projectName);
control = projectControlFactory.validateFor(nameKey);
control = projectControlFactory.validateFor(nameKey, ProjectControl.OWNER | ProjectControl.VISIBLE);
} catch (NoSuchProjectException e) {
throw new CmdLineException(owner, "'" + token + "': not a Gerrit project");
}