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

Re: revision mismatch server - working copy

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Tue, 7 Jul 2009 11:10:36 -0500

On Jul 7, 2009, at 10:42, Stefan Mueller wrote:

> being a newbie in the world of VCS/Subversion, I have a difficult
> problem to solve:
>
> Due to a server crash, the repository revision number on the server
> has now a lower number than the revision number in my working copy.
> How can I synchronize these revision such that I don't lose any
> changes made during the day. There were 2-3 commits in the meantime.

You would have to restore the missing revisions from your backup. If
you don't have a backup of those revisions, then they have been lost.
The best you can do now is to check out a fresh working copy of what
is currently the head revision of the repository (call this revision
X), then manually copy over any changed files that you still have in
any old working copies. When you do this, you must make sure not to
copy any .svn directories or their contents. Then you can commit this
as a new revision X+1 in the newly restored repository. Note that
anybody who has an existing working copy of a revision greater than X
of the old repository must delete it and check out a fresh working
copy from the restored repository, otherwise things will get very
confused. Or instead of deleting those old working copies you may
want to archive them somewhere in case you discover there were other
changes lost that someone might have had in their working copies.

Make sure your backup strategy backs up every revision immediately,
so that you do not lose revisions if the server crashes.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2368892

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-07 18:11:59 CEST

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.