You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Etebaran IT <in...@etebaran.com> on 2010/06/01 11:31:46 UTC

Bogus Server

Hi
my server crashed and i had to restore a backup.
We had a huge svn on the server and a lot of users used it,

Not the working copy is out of synch with the svn server, and i dont know how to fix it.

Please help

Regards
AbiusX

Re: Bogus Server

Posted by Les Mikesell <le...@gmail.com>.
On 6/1/2010 12:34 PM, Kevin Grover wrote:
>
>     my server crashed and i had to restore a backup.
>     We had a huge svn on the server and a lot of users used it,
>
>     Not the working copy is out of synch with the svn server, and i dont
>     know how to fix it.
>
>     Please help
>
>     Regards
>     AbiusX
>
>
>
> It's difficult to tell what the problem is without a little more
> detail.  I'll assume that you reloaded from a dump file (or a backup of
> the repository) in which case the UUID of the repository is the same.
> However, you probably have the repository in a different path (different
> server name, or something that changed the URL).
>
> If that's the case you need to use the 'svn switch --relocate' command.

I'd guess that the working copy is checked out/updated  from a later 
revision than the restored repository has (i.e. some commits were lost 
from the time after the backup was made).  I don't think there is a 
reasonable recovery technique other than checking out a new working 
copy, then copying over the changed/newer files from your old working 
copy and committing them.

-- 
   Les Mikesell
     lesmikesell@gmail.com





Re: Bogus Server

Posted by Kevin Grover <ke...@kevingrover.net>.
On Tue, Jun 1, 2010 at 4:31 AM, Etebaran IT <in...@etebaran.com> wrote:

> Hi
> my server crashed and i had to restore a backup.
> We had a huge svn on the server and a lot of users used it,
>
> Not the working copy is out of synch with the svn server, and i dont know
> how to fix it.
>
> Please help
>
> Regards
> AbiusX
>
>

It's difficult to tell what the problem is without a little more detail.
I'll assume that you reloaded from a dump file (or a backup of the
repository) in which case the UUID of the repository is the same.  However,
you probably have the repository in a different path (different server name,
or something that changed the URL).

If that's the case you need to use the 'svn switch --relocate' command.

If you restored a dump into a **non-empty** repository, then the UUID is NOT
changed to that in the dump file (it stays whatever the new repository UUID
is).  If this is the case, you need to do the 'svnadmin load' into a freshly
created repository (e.g. at revision 0).

Otherwise, we need more information.