Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.
	
	



0 votes

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 "AlertManagement". 



One answer

Permanent link
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.

0 votes

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

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,020

Question asked: Sep 03 '14, 1:47 p.m.

Question was seen: 3,531 times

Last updated: Sep 03 '14, 11:06 p.m.

Confirmation Cancel Confirm