[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: Mark Phippard <markp_at_softlanding.com>
Date: 2006-03-13 20:09:25 CET

"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
> I'd import it from scratch but now regret it and would like to recover
> project.
> My FSF repo resides on a Linux server using WinXP with SVN-CLI and
> 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

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.


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

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

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