Can I move a file from a component to another?
Accepted answer
The other answers to this question are very old (2007). The updated answer is that the ability to move files and folders to other components has been added in RTC 6.0.3. You can use the context menu action of "Team" --> "Move in Repository".
There is a brief mention of this feature in the RTC 6.0.3 'New & Noteworthy' as shown here:
(At the moment I am not sure where the official help documentation is for this)
This feature was added in the following work item:
In terms of client-side API, see: IWorkspaceConnection.moveVersionablesBetweenComponents(...)
In terms of server-side API, see: IScmService.moveVersionablesWithHistory(...)
Note: The ability to move entire projects (i.e. an Eclipse project) has been in the product for a while (prior to RTC 6.0.3). You can see the help for this feature here: https://www.ibm.com/support/knowledgecenter/SSCP65_6.0.5/com.ibm.team.scm.doc/topics/t_scm_eclipse_mv_project.html
One other answer
On Mon, 03 Dec 2007 12:58:01 +0000, hanjie_siemens wrote:
You can move a whole project between components by opening the Workspace
editor, selecting a component, then a project inside it and hitting the
"move..." button.
There is support for moving any folder between components, however only
project moves are exposed in the UI.
- Dmitry
Can I move a file/dir from one component to another component?
It is a limitation of CC UCM, and jazz supports it or not.
You can move a whole project between components by opening the Workspace
editor, selecting a component, then a project inside it and hitting the
"move..." button.
There is support for moving any folder between components, however only
project moves are exposed in the UI.
- Dmitry
Comments
The UCM issue is that although you could create a copy of a file/dir in
another component (and then delete it from its original component),
changes that were made in other (pre-move) streams would be "lost" when
accepted into a post-move stream (since they wouldn't be applied to the
copy). I believe the same problem exists (currently) in Jazz SCM as
well, doesn't it? (I.e. if you accept a change to that file/dir from a
pre-move stream, it doesn't get applied to that file/dir in its new
component location).
Cheers,
Geoff
Dmitry Karasik wrote:
On Mon, 03 Dec 2007 12:58:01 +0000, hanjie_siemens wrote:
Can I move a file/dir from one component to another component?
It is a limitation of CC UCM, and jazz supports it or not.
You can move a whole project between components by opening the Workspace
editor, selecting a component, then a project inside it and hitting the
"move..." button.
There is support for moving any folder between components, however only
project moves are exposed in the UI.
- Dmitry
That is correct, we still have additional work to do to better support
cross-component move conflicts and updates.
JohnC
Geoffrey Clemm wrote:
The UCM issue is that although you could create a copy of a file/dir in
another component (and then delete it from its original component),
changes that were made in other (pre-move) streams would be "lost" when
accepted into a post-move stream (since they wouldn't be applied to the
copy). I believe the same problem exists (currently) in Jazz SCM as
well, doesn't it? (I.e. if you accept a change to that file/dir from a
pre-move stream, it doesn't get applied to that file/dir in its new
component location).
Cheers,
Geoff
Were there updates on this issue in the latest versions of RTC ? I received query related to moving files\folders between components. I write integration with RTC client and would like to know whether this is possible using RTC client SDK.
Thanks,
Gidi