discard

Discards change sets.

Usage: scm discard [-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] [-v/--verbose] [-d/--directory <arg>] [-N/--no-local-refresh] [-o/--overwrite-uncommitted] [-w/--workspace <arg>] <changes...> [--release-locks <arg>]

changes The change sets to discard. To specify a change set, use its alias or UUID[@repo].

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.
-v, --verbose Shows more information.
-d, --directory <arg> Specifies the root of the shared file system.
-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'.
-o, --overwrite-uncommitted Continues with the operation even if uncommitted local changes exist. If you use this option, changes might be overwritten.
-w, --workspace <arg> The workspace that contains the change set. To specify the workspace, use its name[@repo], alias, or UUID[@repo].
    --release-locks <arg> Releases the locks held on files in the change set that is being discarded. This option overrides the value of the discard.release.locks preference. To see the current value of this preference, run 'lscm get preference discard.release.locks'.


Example