r_honey
r_honey

Reputation: 893

Synchronizing an accidently deleted local SVN folder

I have a SVN repository on a remote server. I regularly update it with commits from my local dev machine.

I accidently deleted a sub-folder of the repository on my LOCAL machine (not on the server). Now I have tried all things to get the folder from repository on my local machine, but for some reason it does not seem to work.

As a last resort, I did a checkout of the deleted sub-folder from Repo browser. But if I now commit from a parent folder, the child-folder modified files are not included in the commit, and I need to commit them separately.

Can someone please tell me how to recover an accidently deleted folder on local machone from the SVN repo??

Upvotes: 4

Views: 4701

Answers (3)

Svemir Brkic
Svemir Brkic

Reputation: 520

I am not able to replicate this issue using TortoiseSVN (just mentioning this because of tortoisesvn tag)

I did just solve a similar problem on command line. Regular "svn update" would not bring the folder back in, but this worked:

rm -rf folder
svn up folder

You may want to make sure you have no local changes in the folder first :-)

Upvotes: 4

Xr.
Xr.

Reputation: 1410

Run an svn update (or whatever the equivalent is in Tortoise) from the folder supposed to contain your missing folder. It will restore any files not deleted through an svn delete.

If you svn deleted the folder, then you must svn revert it. Not sure how you would do it in Tortoise either.

Upvotes: 1

zerkms
zerkms

Reputation: 254886

Just perform update action.

Upvotes: 1

Related Questions