tags:

views:

811

answers:

2

I know how to revert to a specific revision of a folder using these instructions:

http://aralbalkan.com/1381

However, I deleted the entire folder and want to get that folder back without reverting the rest of the repository.

I tried recreating the folder and then merging the changes back, but svn knows my trick and realizes it is a new folder.

How should I do this?

+7  A: 

The easiest way is probably to svn copy the tree you want, from the revision where it last existed:

svn copy src@rev dest

See the Subversion Book for details.

Avi
Does that copy the revision history as well? I mean can I browse the history of files in the copied folder?
Corey Floyd
Yes - 'svn copy' copies with history.
Avi
cool tip! thanks.
Critical Skill
A: 

You could check out a new working copy, and then do an export of the folder you're interested in. Once you've exported the folder, it won't have subversion metadata in it. Then you can put the folder into the working copy that it was deleted from.

Best of luck.

Jon