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

Re: Remove revision range from repository

From: Branko Čibej <brane_at_apache.org>
Date: Thu, 5 Dec 2019 12:11:38 +0100

On 05.12.2019 10:56, Josef Wolf wrote:
> Hello,
>
> I need to permanently remove a range of revisions from a repository, which are
> not the latest.
>
> None of the working copies have such a revision checked out (I guess, that
> might be a show-stopper).
>
>
> I know, I can do:
>
> # svnadmin dump /original/repo -r0:1234 > /path/to/dumpfile_1.dmp
> # svnadmin dump /original/repo -r2345:HEAD --incremental > /path/to/dumpfile_2.dmp
> # svnadmin create /new/repo
> # svnadmin load /new/repo < /path/to/dumpfile_1.dmp
> # svnadmin load /new/repo < /path/to/dumpfile_2.dmp
>
> But that would renumber the revisions of the second load command.
>
> Is there any way to insert empty revisions, so that the revision numbers would
> be stable?

Take a look at the 'svndumpfilter' tool. It can preserve empty revisions
in the output.

> BTW: I guess, I'd need to set the uuid to the uuid of the old repository if I
> don'w want existing working copies to get into trouble?

Any existing working copies may be in trouble in any case. A working
copy that contains an item from a revision that you'll exclude from the
repository will no longer be able to commit or update. Other working
copies will be fine (if you update the UUID).

-- Brane
Received on 2019-12-05 12:11:42 CET

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.