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

Re: Deleting a revision

From: Patrick Smears <patrick.smears_at_ensoft.co.uk>
Date: 2004-10-06 00:51:28 CEST

On Tue, 5 Oct 2004, Bryan Donlan wrote:

> > Of course I could change the passwords , etc but I would also like to
> > delete the history from the repository.
> >
> > Is there anyway to do this (easy _or_ hard)?
>
> You can delete all history before some revision by dumping that repo
> from that revision on, then loading it into a new one:
> svnadmin dump -r 3:HEAD oldrepo > dumpfile
> svnadmin create newrepo
> svnadmin load newrepo < dumpfile
>
> All the revision numbers will be shifted down by two (e.g. r5 becomes
> r3), and revisions before 3 will be inaccessible.

If you preferred, you could probably also edit the passwords out of the
dumpfile (replace "changeme" with "********" or something; I'd guess it
would have to be the same length) - that way you can keep the history but
still remove the offending information...

Patrick

-- 
The easy way to type accents in Windows: http://www.frkeys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 6 00:52:09 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.