Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Copying a file while retaining history

Hello,

Is there a way to copy a file in RTC SCM (2.0) while retaining the history?

Thanks,

Craig

0 votes



8 answers

Permanent link
To retain history, you would "move" or "rename" the file, not "copy" it.
You cannot have two files in the same workspace with the same history.

Cheers,
Geoff

On 10/28/2011 5:23 PM, craigyam wrote:
Hello,

Is there a way to copy a file in RTC SCM (2.0) while retaining the
history?

Thanks,

Craig

0 votes


Permanent link
To retain history, you would "move" or "rename" the file, not "copy" it. You cannot have two files in the same workspace with the same history.


Do you know if there is already an according work item documenting this? We have also stumbled across this lack during our RTC conversion and it is pretty annoying to lose history when e.g. refactoring.

Cheers!

Uli

0 votes


Permanent link
I've posted a work item, 182402, requesting that documentation in this
area be added/improved. Please add comments to that work item
indicating any particular points/questions you'd like to see addressed.

Cheers,
Geoff

On 10/31/2011 6:53 AM, ulricheckhardt wrote:
gmclemmwrote:
To retain history, you would "move" or "rename"
the file, not "copy" it. You cannot have two files in the
same workspace with the same history.


Do you know if there is already an according work item documenting
this? We have also stumbled across this lack during our RTC
conversion and it is pretty annoying to lose history when e.g.
refactoring.

Cheers!

Uli

0 votes


Permanent link
Hi Geoff,

To retain history, you would "move" or "rename" the file, not "copy" it.


This does not seem to be the case when moving files/directories between components. Is there a command for this akin to cleartool relocate?

Many Thanks

Robin

0 votes


Permanent link
Hi Geoff,

To retain history, you would "move" or "rename" the file, not "copy" it.


This does not seem to be the case when moving files/directories between components. Is there a command for this akin to cleartool relocate?

Many Thanks

RobinIn the Eclipse UI, you can go to Package Explorer and select a project to move across a component. Go to the context menu > Team > Move in Repository. If you want to move a file, it's best to create a temporary project, share it, move the file into the temp project, move the project across component, and refactor to get the file in the right place. There isn't a direct file move to another component.

0 votes


Permanent link
No, there is nothing like cleartool relocate in RTC.

To move files/directories between components, you would use the Team ->
Move in Repository operation. If you do that, the history of the files
in the new component will be linked to the history in the old component.

Note: Currently, in the Eclipse GUI, that operation is only enabled on
the root folder of an Eclipse project (i.e., the folder that contains
the .project file). So to move an arbitrary set of files/folders, move
those files/folders to some dummy project in your component, move that
dummy project to the desired component, and then move those
files/folders where you want them to go (and probably keep that dummy
project around for subsequent cross-component moves).

Work item 182834 and others request that this process be
simplified/automated.

Cheers,
Geoff

On 11/2/2011 9:53 AM, parke1r wrote:
Hi Geoff,

To retain history, you would "move" or "rename"
the file, not "copy" it.

This does not seem to be the case when moving files/directories
between components. Is there a command for this akin to cleartool
relocate?

Many Thanks

Robin

0 votes


Permanent link
No, there is nothing like cleartool relocate in RTC.

To move files/directories between components, you would use the Team ->
Move in Repository operation. If you do that, the history of the files
in the new component will be linked to the history in the old component.

Note: Currently, in the Eclipse GUI, that operation is only enabled on
the root folder of an Eclipse project (i.e., the folder that contains
the .project file). So to move an arbitrary set of files/folders, move
those files/folders to some dummy project in your component, move that
dummy project to the desired component, and then move those
files/folders where you want them to go (and probably keep that dummy
project around for subsequent cross-component moves).

Work item 182834 and others request that this process be
simplified/automated.

Cheers,
Geoff

On 11/2/2011 9:53 AM, parke1r wrote:
Hi Geoff,

To retain history, you would "move" or "rename"
the file, not "copy" it.

This does not seem to be the case when moving files/directories
between components. Is there a command for this akin to cleartool
relocate?

Many Thanks

Robin




I tried this and I get an error

"Cannot move the component root folder into another component"

If I just select a folder under a component, I don't get the "Move in repository" option in under Team ...

0 votes


Permanent link
Currently, the only folder you can apply the "move in repository" operation is a folder that is an immediate child of the component root folder. Relaxing that restriction is what is requested in 182834. But note that in any case, you would never be able to move the root folder of the component ... you'd never be able to put anything in the component if it didn't have a root folder.

Cheers,
Geoff


No, there is nothing like cleartool relocate in RTC.

To move files/directories between components, you would use the Team ->
Move in Repository operation. If you do that, the history of the files
in the new component will be linked to the history in the old component.

Note: Currently, in the Eclipse GUI, that operation is only enabled on
the root folder of an Eclipse project (i.e., the folder that contains
the .project file). So to move an arbitrary set of files/folders, move
those files/folders to some dummy project in your component, move that
dummy project to the desired component, and then move those
files/folders where you want them to go (and probably keep that dummy
project around for subsequent cross-component moves).

Work item 182834 and others request that this process be
simplified/automated.

Cheers,
Geoff





I tried this and I get an error

"Cannot move the component root folder into another component"

If I just select a folder under a component, I don't get the "Move in repository" option in under Team ...

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 28 '11, 5:17 p.m.

Question was seen: 11,190 times

Last updated: Oct 28 '11, 5:17 p.m.

Confirmation Cancel Confirm