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

Re: Need Help Recovering From A Folder Named *

From: Konrad Rosenbaum <konrad_at_silmor.de>
Date: 2007-03-10 10:39:05 CET

On Thursday 01 March 2007, SingleShot wrote:
> We are at a loss for how to recover from this.
>
> At revision 37, someone managed to commit a folder under our trunk named
> "*". This prevented most subversion operations from working (checkout,
> update, etc.) - the message was something like "cannot locate path '*'".
>
> Using the TortoiseSVN GUI, we browsed to the * folder in the repository
> and deleted it. The result of course was that the entire trunk was
> deleted! (I suppose it resulted in the equivalent of rm -rf *) This
> resulting in revision 86.

Ok, this sounds really screwy!

Try to dump the whole repository (svnadmin dump), then filter out the *-path
and the delete-trunk-revision (using svndumpfilter). Make sure you use
proper shell-quoting while doing this ('tickmarks' instead of "quotes" and
a few \backslashes here and there). Load the filtered dump into a fresh
repository (DON'T delete or overwrite the old one!!!). Check whether your
problems are fixed. If yes: move the new repository to the old location and
put the old one somewhere else. If no: start with the fresh dump again.

Important rain-dance to prevent this from happening again: Make the guy who
screwed up the repo bring cake for the whole team.

        Konrad

  • application/pgp-signature attachment: stored
Received on Sat Mar 10 10:39:33 2007

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.