[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: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-06-11 16:24:33 CEST

On 6/11/2006 9:51 AM, Upinder S. Bhalla wrote:
> Thanks - I see that my earlier history is gone. But is there a way to use
> the local .svn files to populate the rebuilt repository with the most
> recent previous revision in addition to the current state?

This is probably a little tricky to get right on the first attempt, so
first you should back up your current working copy (including all the
.svn directories).

Then: make another copy of it somewhere, say OLD. Use svn revert in OLD
to undo all the local changes, and do your import from OLD.

Then cd over to the pristine copy of your locally modified copy, and use
svn status to find all the local modifications. Copy all modified files
over to OLD (overwriting what is there), do all deletes and adds in OLD,
until OLD looks just like your locally modified version, and svn status
there returns the same thing. Then commit those changes.

Then back up your repository.

Duncan Murdoch

---------------------------------------------------------------------
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:26:12 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.