It's all about the answers!

Ask a question

Can I move a file from a component to another?


Han Jie (10120) | asked Dec 03 '07, 7:52 a.m.
retagged Oct 23 '18, 4:22 p.m. by Ken Tessier (84117)

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.

Accepted answer


permanent link
David Lafreniere (4.6k7) | answered Oct 15 '18, 10:37 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Oct 15 '18, 10:56 a.m.
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
Ralph Schoon selected this answer as the correct answer

One other answer



permanent link
Dmitry Karasik (1.8k11) | answered Dec 03 '07, 7:52 a.m.
JAZZ DEVELOPER
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

Comments
Geoffrey Clemm commented Dec 03 '07, 5:58 p.m. | edited Oct 15 '18, 10:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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


John Camelon commented Dec 05 '07, 9:28 a.m. | edited Oct 15 '18, 10:23 a.m.
JAZZ DEVELOPER

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


Gidi Gal commented Oct 08 '18, 1:51 p.m.
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

Your answer


Register or to post your answer.