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

scm.exe compare throws error with stream and workspace having same name

RTC does not impose any restriction on having the workspace name same as the stream name
But this has some issues when it comes to RTC scm command line tool. 

Below is the command used:
scm.exe compare ws <workspace_name> stream <stream_name> -r https://Jazzserver:9443/ccm/ -I s -C "|{name}|{email}|" -D "|yyyy-MM-dd-HH:mm:ss|" 
The error message is: 
Mehrdeutiger Selektor "stream_name" stimmt mit mehreren Elementen überein: 
	
	Mögliche Übereinstimmungen:     (4678) "stream_name"	
	  (4679) "stream_name"
Fehler bei Ausführung von 'compare':Mehrdeutiger Arbeitsbereich/Datenstrom "stream_name"
	
	
	
Is there any way to avoid this?

0 votes



One answer

Permanent link
 Hi Karthik.

What version of the SCM CLI are you using? I could not reproduce this error on v4.0.3. In my test repository, I have a stream and workspace both named "BRM Stream". I can compare them using "scm compare":

l:\>scm compare workspace "BRM Stream" stream "BRM Stream" -r repo
Outgoing Changes
  Component (1261) "Banking Logic"
  ...
Incoming Changes
  Component (1261) "Banking Logic"
  ...

Are you sure you don't have a stream and *two* workspaces with the same name? That would be ambiguous.

You can work around this by using the session-specific aliases the SCM CLI assigns to SCM resources - the numbers in parentheses in the CLI output. Here's the above command using aliases:

l:\>scm compare workspace 1452 stream 1453 -r repo
Outgoing Changes
  Component (1261) "Banking Logic"
  ...
Incoming Changes
  Component (1261) "Banking Logic"
  ...

Hope this helps.

     -Matt

2 votes

Comments

We are using RTC 4.0.2. Yes I am sure that we have only one stream. When the workspace is renamed, the scm.exe works as it's supposed to

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
× 1,202
× 343
× 158
× 113
× 87

Question asked: Nov 25 '13, 7:33 a.m.

Question was seen: 7,098 times

Last updated: Dec 16 '13, 12:59 p.m.

Confirmation Cancel Confirm