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?
One answer
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 repoOutgoing ChangesComponent (1261) "Banking Logic"...Incoming ChangesComponent (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 repoOutgoing ChangesComponent (1261) "Banking Logic"...Incoming ChangesComponent (1261) "Banking Logic"...
Hope this helps.
-Matt