reset password
Author Message
aalhazm
Posts: 12
Posted 11:37 Jan 22, 2015 |

How to undo deleting trunk?

cysun
Posts: 2935
Posted 14:06 Jan 22, 2015 |

You basically need to do a merge from the latest revision (i.e. after the file or directory was deleted) to an earlier revision (i.e. a revision before the deletion). See this thread.

Last edited by cysun at 14:07 Jan 22, 2015.
aalhazm
Posts: 12
Posted 23:35 Jan 22, 2015 |

I followed the steps. The last one is to check out the trunk as a dynamic web project but it is empty.

cysun
Posts: 2935
Posted 10:02 Jan 23, 2015 |
aalhazm wrote:

I followed the steps. The last one is to check out the trunk as a dynamic web project but it is empty.

In your case you should check it out as a Maven project.

aalhazm
Posts: 12
Posted 10:15 Jan 23, 2015 |

It is still empty.

Maybe I need to select Revision 2 under "To" in this step 

4. In the Merge screen, under "From:", check Merge from HEAD revision; under "To:", select Revision 1, click Merge.

Can I do the merge again?

cysun
Posts: 2935
Posted 10:16 Jan 23, 2015 |
aalhazm wrote:

It is still empty.

Maybe I need to select Revision 2 under "To" in this step 

4. In the Merge screen, under "From:", check Merge from HEAD revision; under "To:", select Revision 1, click Merge.

Can I do the merge again?

Yes, you can merge as many times as you want. Just remember that the "To" revision should be a revision before the deletion.