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

Re: Undo folder delete

From: Mark Phippard <markphip_at_gmail.com>
Date: 2007-10-01 16:06:52 CEST

On 10/1/07, Brian Erickson <erickson@bauercontrols.com> wrote:
> We had a medium sized disaster here last Friday and I'm wondering if
> there was a better way to recover from it...
>
> Our source tree has two folders in it \vme and \pcs. One of our users
> accidentally deleted the \pcs folder. He doesn't remember doing an svn
> delete but I'll just take it on faith that he did. However, I couldn't
> think of a graceful way to recover. Here's what I did:
>
> Checkout revision 190 into d:\head
> Checkout revision 189 into d:\lastgood
> Removed all .svn folders from 'd:\lastgood\pcs' tree
> Xcopy /sdki d:\lastgood\pcs d:\head\pcs
> In d:\head folder: svn add pcs
> In d:\head folder svn commit
> Now revision 189 and 191 match so things seem to be okay.
>
> Was there a better way?

Yes, there are better ways. You got your content back (which might be
all you need) but you lost your history. This blog shows how you
could have done this:

http://blogs.open.collab.net/svn/2007/07/second-chances-.html

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 1 16:07:14 2007

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.