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

Re: wc-ng and recoverability of corrupt wc's

From: Noorul Islam K M <noorul_at_collab.net>
Date: Fri, 01 Jul 2011 15:02:16 +0530

Johan Corveleyn <jcorvel_at_gmail.com> writes:

> Hi,
>
> Sometimes, a (part of a) working copy gets corrupted (errors like
> 'checksum mismatch ...' while running 'update'). Maybe it happened
> because a third-party tool has messed with the base files, or with the
> entries file, or ... or maybe it happened because of a bug in svn.
> This was/is deemed non-disastrous, because it's only a working copy,
> one can always checkout a new one (after backing up local changes).
>
> Of course, it can be painful if a working copy is (very) large, and
> the corruption is in a small directory somewhere deep down, ... In
> wc-1, there was the cheap solution that you could just blast away the
> "corrupt directory" (including the .svn metadata), and let "svn
> update" restore it (after which you would copy over your modified
> files). Just this week I helped out two of my colleagues who ran into
> such wc corruptions, by following exactly this procedure.
>

noorul_at_noorul:/tmp/wc/repo$ tree
.
`-- A
    `-- B
        `-- C
            `-- D
                `-- file.txt

4 directories, 1 file
noorul_at_noorul:/tmp/wc/repo$ rm -r -f A/B/C/D
noorul_at_noorul:/tmp/wc/repo$ ~/projects/subversion/builds/trunk/bin/svn up A/B/C/D
Updating 'A/B/C/D':
Restored 'A/B/C/D'
Restored 'A/B/C/D/file.txt'
At revision 1.

It is working for me. I might be overlooking.

Thanks and Regards
Noorul
Received on 2011-07-01 15:38:46 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.