How can I add a file from one component to another
For example, currently I have
component 1I want to add "reallyfulfile" (same object, preserving history) to component 2 as well so we have.
comp file 1component 2
reallyusefulfile
comp file 2
component 1Is that possible at all?
comp file 1conmponent 2
reallyusefulfile
comp file 2
reallyusefulefile
2 answers
Comments
OK, I suppose I have 2 supplementary questions:
1. How do I do the "move"?
2. If I have a Main Dev stream and Bug Fix stream (obviously with same components). I have created a "reallyusefulfile" in component A in Dev stream, how do I add the file to component A in Bug fix stream?
1). My apologies - I looked into it further and you can move Eclipse projects across components and retain history (right-click on the project in the Package Explorer and choose Team -> Move in Repository Workspace...) but you cannot move individual files.
There is an open request for this functionality here:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=21637
There is a related question here which describes the workaround as listed in the work item. Basically you need to create a dummy project, move the project, and then move your file:
https://jazz.net/forum/questions/125188/why-does-moving-files-between-components-not-maintain-history
2). In our development if a fix applies to both the main and maintenance streams, then we accept the changeset into both streams. Typically this is done by clicking on the attached changeset in a work item and "accepting" that changeset, or by changing the flow target in your workspace to the other stream and then delivering the change via the Pending Changes view.
But be fore-warned ... a change set lives in exactly one component, and cannot be moved to another component. Starting in 6.0, you are given the option of creating a "clone" of a change set in another component, which effectively lets you apply that change from the pre-move component to the post-move component, but I personally recommend that only an expert user should attempt this magic (:-).