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

Re: Remove revisions?

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-03-18 19:08:08 CET

Ben Collins-Sussman <sussman@collab.net> writes:
> > Is it possible to remove the last revision (or last n revisions) from a
> > repository?
> >
> > I don't see anything that describes how to do this with either the svn
> > or the svnadmin command. I wouldn't expect it in svn but I would think
> > that svnadmin would have the ability to remove revisions. Conceptually,
> > it seems easy to do.
>
> Read issue #516: "svn obliterate":
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=516

Actually, removing the most recent N revisions is much easier than
"svn obliterate", because earlier revisions cannot possibly have
dependencies on later ones. A correct but inefficient approach would
be simply to delete those rowse from the `revisions' table; nicer
would be to remove the corresponding stuff from `nodes' and `strings'.

Of course, working copies would be invalid, but detectably so -- at
least until new revisions using the same numbers are committed.
<evil grin> :-)

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 18 18:59:06 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.