It's all about the answers!

Ask a question

Problem with duplicate baseline names when using scm.exe


Rahul Pawar (7121) | asked Jan 10 '11, 7:36 a.m.
Hi

We are facing a typical issue with RTC when fetching a baseline using command line tool scm.exe. The command we are using is,

scm workspace replace-components --all --overwrite-uncommitted --baseline "baselineName" "wrkSpaceName" stream "streamName" -r repositoryNickName


This worked fine until the baselineName was unique. But unfortunately now the baseline names are not unique & RTC does not restrict users from creating duplicate baseline name.

Now if we fire the same command the error we get is,
Multiple baselines match "baselineName"


Please can anyone suggest how to tackle this problem? Is it possible to get the UUID of all the same name Baselines by any command & then choose the UUID of the correct baseline to replace the component with?

Note: When we use the RTC client to view the baselines, an ID is displayed along with the baseline name. It shows as "ID: baselineName". If we specify this ID instead of baselineName in the above command, it does not work.

Thanks

2 answers



permanent link
Shashikant Padur (4.3k27) | answered Jan 10 '11, 8:41 a.m.
JAZZ DEVELOPER
The error should have listed the baselines (with alias/UUID) that matched the specified name.

Unfortunately there is no list baseline available from the command line today and there is a workitem open for it... https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=108402.

The 'scm ls comp -v" command lists only the current baseline.

Hi

We are facing a typical issue with RTC when fetching a baseline using command line tool scm.exe. The command we are using is,

scm workspace replace-components --all --overwrite-uncommitted --baseline "baselineName" "wrkSpaceName" stream "streamName" -r repositoryNickName


This worked fine until the baselineName was unique. But unfortunately now the baseline names are not unique & RTC does not restrict users from creating duplicate baseline name.

Now if we fire the same command the error we get is,
Multiple baselines match "baselineName"


Please can anyone suggest how to tackle this problem? Is it possible to get the UUID of all the same name Baselines by any command & then choose the UUID of the correct baseline to replace the component with?

Note: When we use the RTC client to view the baselines, an ID is displayed along with the baseline name. It shows as "ID: baselineName". If we specify this ID instead of baselineName in the above command, it does not work.

Thanks

permanent link
Rahul Pawar (7121) | answered Jan 11 '11, 7:44 a.m.
Thanks Shashikant!

Your answer


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