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

Re: restore repository - repository version?

From: Max Bowsher <maxb_at_ukf.net>
Date: 2003-08-13 23:22:01 CEST

Wadsworth, Eric (Contractor) wrote:
>>> Question: My box has a bad day, and my subversion
>> repository dies. I restore
>>> from a backup of a couple of days ago (version 220). But a
>> bunch of working
>>> copies are at 229. Now nobody can do anything, because all
>> the working
>>> copies are out of sync with the newly restored (older)
>> repository. What do I
>>> do?
>>
>> Have everyone do this:
>>
>> $ cd working_copy
>> $ svn diff > ~/my-changes
>> $ cd ..
>> $ mv working_copy working_copy.busted
>> $ svn co http://repos_url working_copy
>> $ cd working_copy
>> $ patch -p0 < ~/my-changes
>
> What a neat little trick!
>
> I don't suppose you know one that will work on Windown 2000 boxen...? (I'm
> the only one using UNIX on this project.)

Well, obviously you have svn on the W2k boxen :-)
"cd" is the same, "mv" is called something else, but exists
You may have to hunt around on the net for a Windows version of "patch".
I have NOT TRIED IT, but http://gnuwin32.sourceforge.net/ may help.
Personally, I use Cygwin, but that is a bit heavyweight to install for just
one tool.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 13 23:22:55 2003

This is an archived mail posted to the Subversion Users mailing list.