It's all about the answers!

Ask a question

Command line history of Component


Calvin Cheok (123) | asked Sep 03 '14, 1:47 p.m.
 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.
	
	




Comments
Calvin Cheok commented Sep 03 '14, 2:33 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 "AlertManagement". 

One answer



permanent link
Tim Mok (6.6k38) | answered Sep 03 '14, 2:25 p.m.
JAZZ DEVELOPER
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
Shashikant Padur commented Sep 03 '14, 11:06 p.m.
JAZZ DEVELOPER

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


Register or to post 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.