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

RE: Recovering text-base

From: Dale Worley <dworley_at_pingtel.com>
Date: 2004-12-01 19:43:38 CET

    Mike Crowe wrote:

    So, is there an automated way of resurrecting the text-base files
    should
    they go missing without losing any pending changes or accidentally
    reverting checked in changes?

Looking at .svn/entries, it doesn't look like it would be difficult to write
a program using any of the popular scripting languages that would do the job
well enough -- it lists all the files in the parent directory, the revisions
that were checked out, the repository URL for the directory, the timestamp
on the text-base file, etc.

    From: Ben Collins-Sussman [mailto:sussman@collab.net]

    If a crash happens, don't bother to restore working copies
    unless a user tells you that there was a specific patch-in-progress
    that needs to be recovered. In that case, you restore the broken
    working-copy, have the user checkout a new working-copy, then manually
    copy the edited files into the new working-copy.

The svn_load_dirs.pl script should be able to help you with this. But make
sure that the working copy you check out is at least as old as the working
copy that the restored files were from, otherwise you could automatically
reverse some changes.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 1 19:46:13 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.