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

Re: delete my trunk, how to recover?

From: Sam Carleton <scarleton_at_miltonstreet.com>
Date: 2007-04-27 02:36:18 CEST

On 4/26/07, François Beausoleil <francois.beausoleil@gmail.com> wrote:
> Hello Sam,
>
> When you say you deleted "trunk", do you mean your working copy or the
> folder in your repository ?

The later, the folder in my repository!

> If #1, simply checkout a new working copy and start from there.
>
> If #2, you have to find the exact revision in which you deleted your
> trunk (from Windows command line):
>
> svn log --verbose --revision HEAD:1 --limit 5 https://apache/repos/project/
>
> Notice the /trunk part is missing. That's because you want to log the
> parent's folder, and not trunk itself (because it was deleted).
>
> Once you have the revision (let's call it X), you will do:
> svn copy --revision X-1 https://apache/repos/project/trunk
> https://apache/repos/project/
>
> Here, you tell Subversion to copy /trunk as it was in revision X-1 (do
> the math, svn can't do it for you) and to put it back in /project.
>
> Hope that helps !

François,

I followed your instructions to a T and I have it all back! I think I
only lost about 8 hours of work, so not the end of the world.

By the way, I used did it from the Linux box because svn was/is not in
my Windows path.

Sam
Received on Fri Apr 27 02:36:35 2007

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