scm.exe compare throws error with stream and workspace having same name
Karthik Krishnan (889●8●121●163)
| asked Nov 25 '13, 7:33 a.m.
retagged Dec 16 '13, 12:59 p.m. by David Lafreniere (4.8k●7) 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":
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:
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
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.