It's all about the answers!

Ask a question

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


Karthik Krishnan (859389129) | asked Nov 25 '13, 7:33 a.m.
retagged Dec 16 '13, 12:59 p.m. by David Lafreniere (4.3k7)
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?

One answer



permanent link
Matt Lennon (61225) | answered Nov 25 '13, 9:44 a.m.
JAZZ DEVELOPER
 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

Comments
Karthik Krishnan commented Nov 26 '13, 5:11 a.m.

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 to post your answer.