What is the best way to move parts between components?
What is the best way to move parts between components?
We are trying to split one of our large components into 2 smaller components, so we need to move a large number of files from one to the other. 1. We have tried copy and paste in the RTC Project Explorer. 2. We tried using import and export options. 3. Simply doing DOS mv and lscm copies from a command prompt. It appears the file loses it's associated properties once it has been moved. The lscm command does not work at this time and I have been advised that it may allow a move with the properties when RTC 4.0.3 is officially released soon. |
One answer
I don't think a move to another component is fully supported in the command line (see 233895: Perform "Moving projects to other components" from scm command line). If you're ok using the Eclipse client, you can move a folder in the component root to another component by right-clicking on it in Package Explorer and using Team > Move in Repository... to select another component. However, this is only supported on folders in the component root.
Comments
NANCY SCHIPON
commented May 22 '13, 5:09 p.m.
Thank you for your response Tim.
A move is essentially a copy and a delete. If you want to copy the files, you can perform the move but not deliver the change sets on the source component.
NANCY SCHIPON
commented May 23 '13, 2:23 p.m.
Appreciate your response but the needed result requires the properties to be maintained after a copy.
I think you're asking for a copy in repository feature. There's a work item about supporting what you want but as a move operation (see 56504: Move files and folders between components and retain history). Since a move can be interpreted as a copy followed by a delete, it's possible that work item will fulfill your requirements. I don't know of any other work item that fulfills your requirements but you're welcome to create one.
|
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.