Command line history of Component
Trying to use the command line : scm show history similar to the Browser or Eclipse Client UI doing a Component History.
However in the Command Line, I am unable to?
e.g.
scm -u n -a n show history -r [my repo url] -R -c [componentA] -C [componentA] -m 200 [folder]
will list the " Item History "
However this command:
scm -u n -a n show history -r [my repo url] -R -c [componentA] -C [componentA] -m 200
Error: Complaining it needs the file folder
Workspace, Component and file path must be specified when using -R/--remotePath option.
Clearly, the HELP says, the 'Selector' is omitted, the Component History will be listed?
Usage: scm history [options] [selector] selector - The file (path) to show its history. Paths and their respective components are assumed to be taken fro m the local file system unless the --remotePath option is used. The component history is shown if this option is omitted.
The component history is shown if this option is omitted.
One answer
It looks like you added the -R without specifying a remote path. If you aren't going to specify one then you can omit that option.
Comments
I do not have a loaded workspace, so '-R' is telling it remote.
Taking -R out, getting this error?
Problem running 'show history':
Unable to find loaded component (componentA)
If you are not running the command within the sandbox you need to specify the -w/--workspace option.
The following should work:
scm show history -r <repo> -w <workspace> -C <component>
1 vote
Comments
Calvin Cheok
Sep 03 '14, 2:33 p.m.I do not have a loaded workspace, so '-R' is telling it remote?