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