[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to recover deleted directory in repository?

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Sun, 9 Oct 2011 20:57:17 -0500

On Oct 9, 2011, at 08:32, Geoff Hoffman wrote:

>> If you do it that way, it will appear to Subversion (and yourself later, when you review the history) as though you created the directory an all its contents in revision 11. It will be completely disconnected from its previous history in the repository. "svn log" on this new directory will only go back to revision 11. "svn blame" will show it was created in revision 11. This is probably not what you want. You probably want to bring the directory back from the past, linked with all its prior history.
>>
>> To do that, instead copy it from its prior repository location with svn cp:
>>
>> cd /path/to/workingcopy/gnwd/notes/svn
>> svn cp https://pl3.projectlocker.com/gnwd/notes/svn/a_dir@9 .
>> # test, test, test
>> svn ci -m "resurrecting a_dir from revision 9"
>
> Ryan, your way is better. I thought that would create commit conflicts though. It doesn't?

How do you mean?
Received on 2011-10-10 03:57:55 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.