RTC: SCM: In a component, how to move uploaded files into a project
I am looking to achieve the following:
Moving files between components while maintaining history. (steps are included in the answer by Geoffrey Clemm)
https://jazz.net/forum/questions/125188/why-does-moving-files-between-components-not-maintain-history
The first two steps are as follows:
- create a dummy project and share it into your component.
- do a regular move of the things you want to move into that dummy project
I am not able to do the 'regular move of the things you want to move'.
The file I want to move is not a project, just ordinary files and folders. (I will call it File A)
In Eclipse client, when I look at the package explorer, it only shows projects, so File A doesn't appear, hence I cannot move them.
In Eclipse client, when I right click a component and click 'show'>'repository files', I can see all the files including File A. However in this view I cannot move files whether right click or drag/drop.
In Web client, when I show the contents of the components, I can see all files, however there is no option to move files around.
(I have also checked this forum post where similar steps are provided:
https://jazz.net/forum/questions/228403/scm-move-a-file-without-loosing-history-into-another-folder-in-same-component?redirect=%2Fforum%2Fquestions%2F228403%2Fscm-move-a-file-without-loosing-history-into-another-folder-in-same-component
Although likewise there is just the recommendation of moving files into a dummy project, but not how)
Am I overlooking something? What does this 'regular move' mean and how do I do it?
Moving files between components while maintaining history. (steps are included in the answer by Geoffrey Clemm)
https://jazz.net/forum/questions/125188/why-does-moving-files-between-components-not-maintain-history
The first two steps are as follows:
- create a dummy project and share it into your component.
- do a regular move of the things you want to move into that dummy project
I am not able to do the 'regular move of the things you want to move'.
The file I want to move is not a project, just ordinary files and folders. (I will call it File A)
In Eclipse client, when I look at the package explorer, it only shows projects, so File A doesn't appear, hence I cannot move them.
In Eclipse client, when I right click a component and click 'show'>'repository files', I can see all the files including File A. However in this view I cannot move files whether right click or drag/drop.
In Web client, when I show the contents of the components, I can see all files, however there is no option to move files around.
(I have also checked this forum post where similar steps are provided:
https://jazz.net/forum/questions/228403/scm-move-a-file-without-loosing-history-into-another-folder-in-same-component?redirect=%2Fforum%2Fquestions%2F228403%2Fscm-move-a-file-without-loosing-history-into-another-folder-in-same-component
Although likewise there is just the recommendation of moving files into a dummy project, but not how)
Am I overlooking something? What does this 'regular move' mean and how do I do it?
Accepted answer
To see a file in Eclipse, that file must be in an Eclipse project. So create a .project file somewhere above the files you want to refactor. Or you can just use the "scm move" command line command, and then you don't have to bother with Eclipse projects.
Comments
Thank you.
I tried that, but it seems the file history is not maintained.
I also tried Deepali's step in the 3rd answer of this post:
https://jazz.net/forum/questions/228403/scm-move-a-file-without-loosing-history-into-another-folder-in-same-component?redirect=%2Fforum%2Fquestions%2F228403%2Fscm-move-a-file-without-loosing-history-into-another-folder-in-same-component
that is, using 'load the root folders of the components as project'. However likewise the history doesn't seem to be maintained.
I am still not sure whether that means I am doing the wrong type of move, or history won't be maintained through a move.
Problem solved after trying different combinations of moves, using Eclipse client and SCM commands.