Shows the history for a file or a component. If you omit the workspace, component, or file arguments, the item for which history must be displayed is determined from the current working directory.
Aliases:
show h
Usage: scm show history | [-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>] [-m/--maximum <arg>] [-R/--remotePath -w/--workspace <arg> -C/--component <arg>] [selector] [-b/--baselines] |
selector | The path of the file or folder for which history must be displayed. Paths and their respective components are taken from the local file system unless the --remotePath option is used. If you omit the selector, the component history is shown. |
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 | Prints additional change set information. |
-d, --directory <arg> | Specifies the root of the shared file system. |
-m, --maximum <arg> | The maximum number of results that can be returned. The number must be greater than 0. If you omit this option, 10 is used by default. If you specify "all"/"-" then all possible results are displayed. |
-R, --remotePath | Indicates that the provided paths are the remote paths in the specified component and specified stream. |
-w, --workspace <arg> | The workspace or stream for which history must be displayed. To specify the workspace or stream, use its name[@repo], alias, or UUID[@repo]. If you omit this option, the workspace is inferred from the local file system. |
-C, --component <arg> | The component for which history must be displayed. To specify the component, use its name[@repo], alias, or UUID[@repo]. If you omit this option, the component is inferred from the local file system. |
-b, --baselines | Include baselines with change sets in history. |
Example