You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Papick G. Taboada" <pg...@pgt.de> on 2006/06/07 06:33:54 UTC

How to fix working copy if repository was restored from backup???

Hi,

I just recovered my repository to the latest revision I had on backup
352. My working copy was at 355 and complains that this revision does
not exist anymore.

How do I get out of this problem?

brgds,

Papick

-- 

T3chnology Scout

   http://www.adminSight.de
   https://www.openbc.com/hp/Papick_GarciaTaboada/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to fix working copy if repository was restored from backup???

Posted by ko...@kovac.ch.
Hi Pat

Just checkout version 352 into a new working directory and then copy  
the working directory of version 355 over version 352 (assuming no  
files were deleted between 352 and 355. Check the status to see if  
there are any new files. If so, add them and then checkin your  
changes. Something like this:

mkdir ~/wd2
cp -rp ~/wd ~/wd2
cd ~/wd2
svn status
svn add <newfiles>
svn ci -m "<description of changes>"

Good luck
Kurt

Quoting "Papick G. Taboada" <pg...@pgt.de>:

> Hi,
>
> I just recovered my repository to the latest revision I had on backup
> 352. My working copy was at 355 and complains that this revision does
> not exist anymore.
>
> How do I get out of this problem?
>
> brgds,
>
> Papick
>
> --
>
> T3chnology Scout
>
>    http://www.adminSight.de
>    https://www.openbc.com/hp/Papick_GarciaTaboada/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How to fix working copy if repository was restored from backup???

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 7, 2006, at 08:33, Papick G. Taboada wrote:

> I just recovered my repository to the latest revision I had on backup
> 352. My working copy was at 355 and complains that this revision does
> not exist anymore.
>
> How do I get out of this problem?

Unfortunately, Subversion is not designed to get out of this problem  
easily. This is why it is so important to have completely current  
backups at all times. Best idea is to use svndump in a post-commit  
hook so that you have a backup of every revision, all the time. You  
can and should still do regularly-scheduled dumps or hot-copies, and  
then possibly clean up the incremental dumps made in the post-commit  
hook up to that point.

Now that you have the problem, though, here's an answer I wrote to  
someone last year about how to get out of it; maybe it will help you  
too:

http://svn.haxx.se/users/archive-2005-08/0347.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org