Pending Changes, flow one stream to another, duplicate components
I have 3 streams for a project. Dev, Test, and Release. Each stream has 3 components, DB, UI, JAVA.
The code has been developed in Dev and now I want to flow it to Test, so I loaded the Dev Repository, and then changed the flow target to Test.
The pending changes view now has 6 components listed. DB, DB, UI, UI, JAVA, JAVA. Why does it not know that 'DB' & 'DB' are one in the same?
How can I tell it to consolidate?
2 answers
Hi,
to make sure you are looking at the selfsame components and not just components which are named the same, please use the SCM command line as follows:
On a client which has scmtools installed, change to ...\TeamConcert\scmtools\eclipse directory.
Login with
>scm -n jazz -r https://<myserver>:9943/ccm -u <user> -P <password>
and issue
>scm -u y -a n list components Dev@jazz
>scm -u y -a n list components Test@jazz
Are the UUIDs for the components with same name identical? If they are not, then the components are different.
Only if this is the case, one way of resolving it would be:
- Create a workspace from the Test stream
- In the workspace, remove the component
- Deliver the component removal to the Test stream
- Open the Test stream and use the "add" button next to its components entries to add component from Dev stream.
If you point a Dev workspace to the Test stream, it should show outgoing changes for the component once further changes have been made in Dev.
Do not follow this procedure if you already have different changes in both components of the same name. In that case, you need to manually merge the component content into one of the components (e.g. Dev workspace), then follow above procedure to keep the merged component and get rid of its evil twin.
If this answers your question, please mark it as accepted.
- Arne
to make sure you are looking at the selfsame components and not just components which are named the same, please use the SCM command line as follows:
On a client which has scmtools installed, change to ...\TeamConcert\scmtools\eclipse directory.
Login with
>scm -n jazz -r https://<myserver>:9943/ccm -u <user> -P <password>
and issue
>scm -u y -a n list components Dev@jazz
>scm -u y -a n list components Test@jazz
Are the UUIDs for the components with same name identical? If they are not, then the components are different.
Only if this is the case, one way of resolving it would be:
- Create a workspace from the Test stream
- In the workspace, remove the component
- Deliver the component removal to the Test stream
- Open the Test stream and use the "add" button next to its components entries to add component from Dev stream.
If you point a Dev workspace to the Test stream, it should show outgoing changes for the component once further changes have been made in Dev.
Do not follow this procedure if you already have different changes in both components of the same name. In that case, you need to manually merge the component content into one of the components (e.g. Dev workspace), then follow above procedure to keep the merged component and get rid of its evil twin.
If this answers your question, please mark it as accepted.
- Arne
Are DB and DB really the same component? Or are they different components that have the same name? There are several ways to test that. One easy way to test is to right click on each of DB components in your pending changes view and select "Open". If opening the second one reuses the same editor window, then they are the same component. If two different editor windows are opened, then they are different components with the same name.
If the same component is showing up twice, that sounds like a bug in RTC. You should file a defect.
If they are two different components with the same name, then you need to fix all three streams to use the same components. The components that you don't want to keep should be renamed and their visibility should be changed so it becomes difficult to use them by mistake.
-- David Olsen, IBM Rational, Jazz Process Team