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

Re: How to recover a working copy after switch

From: Chris Jensen <cjensen_at_edex.com.au>
Date: 2004-10-27 03:29:33 CEST

Walden Mathews wrote:
> Hello,
>
> I'm seeing several cases where an svn switch does not
> complete normally, leaving the working copy in a state
> where many folders show up in Switched status.

I need a fix for this too. I'm keeping /etc in subversion on a couple of
servers - at one point a switch totally borked /etc - server wouldn't
boot - turned out a key boot file had been corrupted, it didn't
correspond to *any* version of the file ever placed in the repository,
but "svn st" and "svn up" said the file was unchanged from the latest
revision.

The best I've come up with so far to fix this is to checkout the entire
heirachy in another directory, and then copy all the .svn directories
accross to the original tree (/etc)
It would be much preferable if an "svn switch" or "svn up -r" would fix
this. Maybe "svn up -f -r" should force subversion to verify that the
base it has in the working copy is equivalent to whats in the repository?

-- 
---------------------------------------------------------------------
Chris Jensen cjensen@edex.com.au
Educational Experience (Australia)
Postal Address: PO Box 860, Newcastle NSW 2300
Freecall:       1-800-025 270      International: +61-2-4923 8222
Fax:            (02) 4942 1991     International: +61-2-4942 1991
Visit our online Toy store! http://www.toysandmore.com.au/
---------------------------------------------------------------------

Received on Wed Oct 27 03:30:06 2004

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.