On Tue, Dec 14, 2010 at 04:35:59PM +0100, Thorsten Schöning wrote: > Guten Tag Mauro Condarelli, > am Dienstag, 14. Dezember 2010 um 15:34 schrieben Sie: > > > I would rather not checkout a fresh copy, move all changes to it and > > submit that, if possible, because it is too error-prone. > > Some weeks ago I had the same situation, two times within one week, > and I didn't find any other suitable solution.
The best approach is to be prepared and use a good backup strategy. >From the post-commit hook, create an incremental dump file of every revision. You can do this with svnadmin dump --deltas --incremental -r $REV. This gives you nearly instant backup of every commit that made it into the repository. Incremental dump files can be large if a large tree is added, but in general they don't use much space. After restoring the last full backup of the repository, load missing revisions from the incremental dump files generated since the last full backup was made. You can either get rid of incremental dump files dated before the last full backup, or keep them around in case you'll need them some day. Having multiple backups of your data in different representations doesn't hurt. Stefan