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

Re: Can I remove a revision?

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-04-03 17:42:33 CEST

On Tuesday 03 April 2007 17:23, Partha Lal wrote:
> I'm wondering if it's possible to remove the most recent commit to a
> repository? I'm assuming I can't just go and remove the revision file
> under path_to_repos/db/revs/ without breaking things. As before, I'm
> running SVN v1.3.2 on Linux (Fedora Core 5), using an FSFS backend on a NFS
> filesystem.

Sure, dump and reload. How to undo (there are in fact two ways) is also
documented in either the FAQ or the book.

> This is related to an earlier problem I received no reply about -
> http://svn.haxx.se/users/archive-2007-03/1449.shtml - I did try to make my
> email clear and detailed, and I don't think the question has been answered
> before. Let me know if I can make anything clearer.

Hmmm, if that file is missing a newline (or something else), I guess that that
is a sign of repository corruption for (at least) that revision. Removing the
problematic revision using a dump/load cycle is the right way to work around
the problem. In any case I would make sure that the content still matches the
latest backups (SVN is _not_ a replacement for backups, in case that isn't
clear to anyone reading!) in case the corruption went further.

You wrote that it happened committing a very large changeset (much bigger than
what some filesystems support as size for individual files) so it could be a
real problem though. At the very least I would expect Subversion to give an
error message... can you reproduce the error?

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 3 17:41:24 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.