SCM: Move a file without loosing history into another folder in same component
Hi All,
I want to move a file without loosing history into another folder in same component. I have come across solution that says navigate to Project explorer-->Right click on project-->select move. In my case its for folders present in components and not for any project. I am using CLM 6.0.2.
Is there anyway to achieve this in RTC eclipse client or web client ? Please help me with steps/links to move a file.
Any help would be appreciated.
Deepali Nigade
I want to move a file without loosing history into another folder in same component. I have come across solution that says navigate to Project explorer-->Right click on project-->select move. In my case its for folders present in components and not for any project. I am using CLM 6.0.2.
Is there anyway to achieve this in RTC eclipse client or web client ? Please help me with steps/links to move a file.
Any help would be appreciated.
Deepali Nigade
Accepted answer
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". This action supports multi-selection in the RTC Eclipse client.
Comments
1 vote
showing 5 of 10
show 5 more comments
2 other answers
Hi Deepali,
This would be available in rich client in v603, refer to the notes here :
https://jazz.net/downloads/rational-team-concert/milestones/6.0.3M5?p=news#enhanced-compare
For now, you should be able to perform this move using the command line :
$ lscm status -u clmadmin -P clmadmin
Workspace: (1000) "ScrumForSourceControl_Stream" <-> (1001) "ScrumForSourceCont>
Component: (1002) "ScrumForSourceControl Default Component"
Baseline: (1003) 1 "Initial Baseline"
$ ls
SourceFolder logs trace
TargetFolder preferences.properties
daemons scratch
$ lscm move -r https://clm602.ibm.com:9443/ccm -u clmadmin -P clmadmin SourceFolder/sampleToBeMoved.txt TargetFolder/
Successfully moved.
$ lscm status -u clmadmin -P clmadmin
Workspace: (1000) "ScrumForSourceControl_Stream" <-> (1001) "ScrumForSourceCont>
Component: (1002) "ScrumForSourceControl Default Component"
Baseline: (1003) 1 "Initial Baseline"
Unresolved:
m-- /TargetFolder/sampleToBeMoved.txt
Once this unresolved change is checked in, you will see that move completed and I noticed that the history is also retained.
hope this helps.
This would be available in rich client in v603, refer to the notes here :
https://jazz.net/downloads/rational-team-concert/milestones/6.0.3M5?p=news#enhanced-compare
For now, you should be able to perform this move using the command line :
$ lscm status -u clmadmin -P clmadmin
Workspace: (1000) "ScrumForSourceControl_Stream" <-> (1001) "ScrumForSourceCont>
Component: (1002) "ScrumForSourceControl Default Component"
Baseline: (1003) 1 "Initial Baseline"
$ ls
SourceFolder logs trace
TargetFolder preferences.properties
daemons scratch
$ lscm move -r https://clm602.ibm.com:9443/ccm -u clmadmin -P clmadmin SourceFolder/sampleToBeMoved.txt TargetFolder/
Successfully moved.
$ lscm status -u clmadmin -P clmadmin
Workspace: (1000) "ScrumForSourceControl_Stream" <-> (1001) "ScrumForSourceCont>
Component: (1002) "ScrumForSourceControl Default Component"
Baseline: (1003) 1 "Initial Baseline"
Unresolved:
m-- /TargetFolder/sampleToBeMoved.txt
Once this unresolved change is checked in, you will see that move completed and I noticed that the history is also retained.
hope this helps.
Its working using the below steps.
1. Create a new dummy Eclipse project in the source component locally.
· Load the Component into repository workspace.
· Select “load the root folders of the components as project”
· Select “Load and create Eclipse projects for the selected folders ”
· Click finish.
2. Open Package Explorer move the file/folder to where you really wanted it to go in the target folder.
3. Open Pending Changes, check the unresolved changes.
4. Undo the local changes for .project file.
5. Check-in and Deliver changes for the moved file.
But Is there a way by which I can do in one Go. Can I move 600 files to the respective destination.
1. Create a new dummy Eclipse project in the source component locally.
· Load the Component into repository workspace.
· Select “load the root folders of the components as project”
· Select “Load and create Eclipse projects for the selected folders ”
· Click finish.
2. Open Package Explorer move the file/folder to where you really wanted it to go in the target folder.
3. Open Pending Changes, check the unresolved changes.
4. Undo the local changes for .project file.
5. Check-in and Deliver changes for the moved file.
But Is there a way by which I can do in one Go. Can I move 600 files to the respective destination.
Comments
1 vote