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

Re: Recovering a deleted project

From: Res Pons <pons32_at_hotmail.com>
Date: 2006-03-13 21:19:59 CET

Thanks for the quick response. I couldn't find the revision where I
clobbered my project, using Tortoise. I went back as far as I remember to
mid-February when I created it, to no avail.

Luckily I still had the working folder intact with all its .svn subdirs...so
I ran svn import and recreated the project from scratch but I DON'T THINK I
preserved my history, or did I?

Thanks again.

----Original Message Follows----
From: Mark Phippard <markp@softlanding.com>
To: "Res Pons" <pons32@hotmail.com>
CC: users@subversion.tigris.org
Subject: Re: Recovering a deleted project
Date: Mon, 13 Mar 2006 14:09:25 -0500
MIME-Version: 1.0
X-Originating-IP: [208.49.213.18]
Received: from mail76.messagelabs.com ([216.82.240.83]) by
bay0-mc10-f6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 13
Mar 2006 11:09:28 -0800
Received: (qmail 28236 invoked from network); 13 Mar 2006 19:09:26 -0000
Received: from mail.softlanding.com (HELO dom01.softlanding.com)
(208.49.213.18) by server-9.tower-76.messagelabs.com with SMTP; 13 Mar 2006
19:09:26 -0000
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
X-VirusChecked: Checked
X-Env-Sender: markp@softlanding.com
X-Msg-Ref: server-9.tower-76.messagelabs.com!1142276966!2628904!1
X-StarScan-Version: 5.5.9.1; banners=softlanding.com,-,-
X-Mailer: Lotus Notes Release 7.0.1 January 17, 2006
X-MIMETrack: Serialize by Router on dom01/SoftLanding Systems(Release
7.0|August 18, 2005) at 03/13/2006 02:09:26 PM,Serialize complete at
03/13/2006 02:09:26 PM
Return-Path: markp@softlanding.com
X-OriginalArrivalTime: 13 Mar 2006 19:09:28.0572 (UTC)
FILETIME=[A6B66BC0:01C646D1]

"Res Pons" <pons32@hotmail.com> wrote on 03/13/2006 02:02:40 PM:

> I'm searching http://svn.haxx.se/users for "recovering dead files" and
all I
> get are threads regarding recovering a dead repo using BerkeleyDB. I
> deleted a fairly recent project with not much history in it, thinking
that
> I'd import it from scratch but now regret it and would like to recover
the
> project.
>
> My FSF repo resides on a Linux server using WinXP with SVN-CLI and
Tortoise
> clients. Does anyone know the command for either client to recover my
> deleted project?

There are a couple of pretty easy ways to do it.

1) Use svn copy to copy your project as it existed prior to deleting it.
For example, suppose you deleted it in revision 100. Then:

svn copy -r 99 url://to/project url://to/project -m "Restore Project"

Would do it.

In TortoiseSVN use the repository browser and click on HEAD. Change to
the revision when project existed. Right-click and choose the Copy
option.

2) Do a reverse merge. Again, assuming you did in revision 100 and you
have a WC connected to your repository root.

svn merge -r100:99 url://to/repos

This will undo the change.

In TortoiseSVN, if you have a WC connected to root, then right click and
do Show Log. Find the commit that did the delete and right click and take
the Undo changes from this revision option.

Review and commit in either case.

When it is an entire project, option #1 is easiest. When it is some
specific folders/files or even just some changes to those files, then
option #2 is easiest.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM
Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 13 21:21:05 2006

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.