CLI 参考 > 配置管理命令 > si acceptcp
  
si acceptcp
accepts change package
Synopsis
si acceptcp [--comments=value] [--commentsFile=value] [--reviewer=[user|group:<Group-Name>|super|all]] [--hostname=server] [--port=number] [--password=password] [--user=name] [(-?|--usage)] [(-Ffile|--selectionFile=file)] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=directory] [--forceConfirm=[yes|no]] [(-g|--gui)] [--quiet] [--settingsUI=[gui|default]] [--status=[none|gui|default]] issue|issue:change package id...
Description
si acceptcp casts an accept vote on a change package under review and in the submitted state.
After a change package is submitted, each individual reviewer and one member of each reviewer group (if specified) in the reviewer list must accept the change package before it can be committed to the repository and then closed. For example:
si acceptcp --reviewer=user 3433:1
Options
This command takes the universal options available to all si commands, as well as some general options. See the options reference page for descriptions.
--comments=value
specifies comments recorded in the review log with the vote.
--commentsFile=value
specifies a text file that contains the comments to be recorded in the review log with the vote.
--reviewer=[user|group:<Group-Name>|super|all]
specifies the capacity in which you are casting an accept vote.
user
casts a vote as an individual reviewer in the reviewer list.
group:<Group-Name>
casts a vote on behalf of the entire group (only one user from a group is necessary to vote on behalf of the entire group).
super
an overriding accept vote that is sufficient for accepting the change package even if there are additional reviewers. A super reviewer is not required to be a listed reviewer for the change package.
all
casts a vote as a specific user and any group to which the reviewer belongs.
issue...
issue:change package id...
issue identifies a specific issue that contains all submitted change packages that you want to cast accept votes for; use spaces to specify more than one issue.
issue:change package id identifies a specific change package to cast an accept vote for; use spaces to specify more than one change package.
Diagnostics
See the diagnostics reference page for possible exit status values.
Preferences
Using si setprefs or si viewprefs, you are able to set or view the preference keys for this command.
See Also
Commands: si add, si ci, si co, si cpissues , si createcp, si drop, si lock, si viewcps, si rejectcp, si opencp, si discardcp
Miscellaneous: ACL, diagnostics, options, preferences