accept

Accepts changes into a repository workspace and also downloads the changes to the sandbox if the operation was run from within the sandbox location. The changes to accept can be scoped in one of four ways: all changes in a workspace (default), all changes in a set of one of more components (using --components), all changes in one or more baselines (using --baseline), or a specific set of changes (by specifying the change set aliases, or UUIDs).

Usage:

accept [-c/--changes | -b/--baseline | -C/--components] [-s/--source <arg>] [-t/--target <arg>] [-r/--repository-uri <arg>] [-u/--username <arg> -P/--password <arg> | -u/--username <arg> --password-file <arg> | --certificate <arg> -P/--password <arg> | --smartCard -u/--username <arg> | --kerberos | --integratedWindows] [-j/--json] [-v/--verbose] [-d/--directory <arg>] [-N/--no-local-refresh] [-i/--in-place-markers] [--no-merge] [--accept-missing-changesets] [--flow-components] [--component-hierarchy] [-m/--multiple-hierarchies] [-o/--overwrite-uncommitted] [-q/--queue-merges] [--n-way] [--report-delete-conflicts] [selectors...]

accept [-W/--workitems] [-t/--target <arg>] [-r/--repository-uri <arg>] [-u/--username <arg> -P/--password <arg> | -u/--username <arg> --password-file <arg> | --certificate <arg> -P/--password <arg> | --smartCard -u/--username <arg> | --kerberos | --integratedWindows] [-j/--json] [-v/--verbose] [-d/--directory <arg>] [-N/--no-local-refresh] [-i/--in-place-markers] [--no-merge] [--accept-missing-changesets] [--flow-components] [--component-hierarchy] [-m/--multiple-hierarchies] [-o/--overwrite-uncommitted] [-q/--queue-merges] [--n-way] [--report-delete-conflicts] [selectors...]

selectors An optional list of items to accept.

Options:

-r, --repository-uri <arg> The URI that specifies the location of the repository.
-u, --username <arg> The user name for the repository.
-P, --password <arg> The password for the repository.
    --password-file <arg> File that contains the user's password.
    --certificate <arg> The file that contains the user's login certificate.
    --smartCard Use the connected smart card for authentication.
    --kerberos Authenticate with Windows user credentials using Kerberos/SPNeGO.
    --integratedWindows Authenticate with Windows user credentials using Integrated Windows Authentication.
-j, --json Enable JSON output.
-v, --verbose Shows more information.
-d, --directory <arg> Runs the command in the named directory.
-N, --no-local-refresh Does not scan the file system for new changes. This option overrides the value of the 'refresh.local.changes' preference. To see the current value of this preference, run 'lscm get preference refresh.local.changes'.
-i, --in-place-markers Modifies files that have content conflicts to include the conflicted regions.
    --no-merge Disables automatic merging of conflicts.
    --accept-missing-changesets Automatically find and accept change sets that are not in your repository workspace.
    --flow-components Accepts the additions and deletions of components when the source is the current flow target. Otherwise has no effect.
    --component-hierarchy Specifies to accept the listed components as well as additional subcomponents that comprise a subhierarchy.
-m, --multiple-hierarchies Accepts changes even if components in the hierarchy have multiple parents. The accept operation will affect the configuration of multiple hierarchies that are not explicitly listed.
-o, --overwrite-uncommitted Accepts changes even if uncommitted local changes exist. If you use this option, changes might be overwritten.
-q, --queue-merges Allows change sets with gaps to be accepted in repository workspace. If a merge is already in progress, change sets will be queued.
    --n-way If an n-way conflict occurs when baselines are accepted, this option indicates that a merge change set should be automatically created to resolve the conflict, if possible.
    --report-delete-conflicts Report "delete/delete" conflicts in order to support the cross component move of deletes
-c, --changes Indicates that the selectors refer to change sets and only the specified change sets must be accepted. To specify a change set, use its alias or UUID[@repo] in the list of selectors.
-b, --baseline Indicates that the selectors refer to baselines and the specified baselines must be accepted. To specify a baseline, use its name, alias, or UUID in the list of selectors.
-C, --components Indicates that the selectors refer to components and all of the changes in the specified components must be accepted. To specify a component, use its name, alias, or UUID in the list of selector.
-s, --source <arg> Selects the source workspace or stream from which the changes will flow. To specify the workspace or stream, use its name[@repo], alias, or UUID[@repo].
-t, --target <arg> Selects the target workspace into which the changes will flow. To specify the workspace, use its name[@repo], alias, or UUID[@repo].
-W, --workitems Indicates that the selectors refer to work items and all the change sets must be accepted. To specify a work item, use its ID[@repo] in the list of selectors. To selectively specify the change sets of a work item, list the change sets of the work item and specify the change sets with --changes option.


Example