duplicate changeset

Duplicates a change set in a workspace. A new change set is created that is equivalent to the duplicated change set, and the old change set is suspended or discarded.

Aliases:

duplicate cs

Usage: scm duplicate changeset [common options] [-c/--comment <arg>] [-w/--workspace <arg>] [-W/--workitem <arg>] [-R/--remove] [-s/--suspend | -D/--discard] <selector>
selector A change set to duplicate. To specify the change set, use an alias or UUID.

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.
-c, --comment <arg> A comment for the new change set. If no comment is supplied, the new change set will have the same comment as the duplicated change set.
-d, --directory <arg> Runs the command in the named directory.
-w, --workspace <arg> The workspace that contains the change set to duplicate. To specify the workspace, use its name, alias, or UUID.
-W, --workitem <arg> An optional work item to associate with the new change set. To specify a work item, use its ID.
-R, --remove Remove the old change set from the work item that is associated with the new change set. By default, the change set is not removed from the work item.
-s, --suspend Suspend the change set that is being duplicated. This is the default behavior.
-D, --discard Discard the change set that is being duplicated.

duplicate changeset example

Example