copy files between two components in one stream
Lin Ye (286●1●21●10) | asked Jun 08 '10, 4:47 p.m.
I have two components with the same name "c1" in a stream "main". Is there any way I could copy files from one component to another without creating an additional copy on local machine? Thanks
Nick Edgar (6.3k●3●10) | answered Jun 10 '10, 10:31 p.m.
If you have the files loaded in the RTC client, you can use Team > Move in Repository... to move them to the other component. This will create 2 change sets, one for the removals in the first, and one for the additions in the second. You could then deliver the additions, and discard the removals. The result would be a copy, but where you'd have the contents of the second component loaded. You could reload the first component and select all to overwrite to get back to your starting state. The names of the components don't matter. Note that this approach preserves version history.