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
Calvin Cheok
commented Sep 03 '14, 4:53 p.m.
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)
1
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>
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I do not have a loaded workspace, so '-R' is telling it remote?