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

Re: Rebuilding deleted SVN repository

From: Nico Kadel-Garcia <nkadel_at_comcast.net>
Date: 2006-06-11 16:13:13 CEST

Ryan Schmidt wrote:
> On Jun 11, 2006, at 15:00, Upinder S. Bhalla wrote:
>
>> I forgot to back up my SVN repository files from /opt when I
>> upgraded my
>> OS. The disk has been wiped and reformatted. I do have the user
>> subdirectory with the current files and the local .svn subdirectory
>> with
>> the working revision. I realize most of my project history is
>> history, but I would like to reconstruct my SVN project back to the
>> last revision. What should I do?
>
> If you didn't back up the repository, then the history is gone, so
> you only have the revision that's currently checked out in your
> working copy. You could import that into a new repository and start
> over from there.
>
> I believe Subversion (at least the current version, 1.3.2) will
> ignore the .svn directories when importing, so you should just be
> able to "svnadmin create" the repository, "svn import" your old
> working copy into it, and "svn checkout" a new working copy from the
> new repository and get back to work.

I've had a lot of problems with the "import" command creating subdirectories
or not when doing the import. In particular, when creating a "trunk", for
something called "project", I kept winding up with
http://server/repo/project/trunk/project, instead of the expected
http://server/repo/project/trunk/. It seemed to work best if I made sure
there was no "trunk" directory already in place.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jun 11 16:15:24 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.