On 12/14/2010 9:09 AM, Andy Levy wrote:
> On Tue, Dec 14, 2010 at 09:34, Mauro Condarelli<mc5686_at_mclink.it> wrote:
>> This should be a FAQ, but I didn't find a proper answer, so here I am.
>> I suffered a crash in my SVN server machine.
>> I had a slightly old version of the repository on my backup disks.
>> I have a few modified working copies.
>> I restored the server and the repository.
>> All *seemed* ok, but, unfortunately, the latest version of saved repo was
>> 99, while the "current" in my working copies is 104.
>> Now Subclipse (and TortoiseSVN) refuse to Submit my latest copy because
>> "version 104 does not exist".
>> I understand I lost a few steps in the program history, but I would like to
>> salvage as much as possible.
>> What is the right incantation to achieve that?
>> I would rather not checkout a fresh copy, move all changes to it and submit
>> that, if possible, because it is too error-prone.
> That is what you will have to do.
I'm not 100% sure, but I think 'rsync --delete -avC source dest' would
copy the existing checked-out working copy that you want to become the
new HEAD on top of a tree checked out from your restored backup. The
'-C' option is shorthand for a bunch of excludes that should keep it
from copying over the metadata under .svn directories along with things
that are typically build results.
Received on 2010-12-14 16:35:27 CET