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

Re: Pruning old revisions

From: Benjamin Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Thu, 17 Jul 2008 13:47:47 +0200

On Jul 17, 2008, at 13:22, Matt Benic wrote:

> Hi all,
> Is it at all possible to prune old revisions in a repository with
> Tortoise? We have two repos, one for code and one for art. Artists
> tend to have a very different approach to using the repository and
> between their very frequent commits and large binary files the repo
> grows quite quickly and it would be great to kill off older
> revisions that will definitely never be reused.

Well, you could dump the repository starting with the oldest revision
that still interests you (let's call that Y) and then load that into a
new repository and have everyone check out fresh working copies from

svnadmin dump /repo/old -r $Y --deltas > repo.svndump

      --> http://svnbook.red-bean.com/en/1.1/re31.html

svnadmin load /repo/new < repo.svndump

      --> http://svnbook.red-bean.com/en/1.1/re36.html

You should probably *not* make use of --force-uuid in this case since
the new repo will truly be a new and different repository because of
the change in the number of revisions. Everyone will have to check out
new working copies.

See also

     --> http://subversion.tigris.org/faq.html#dumpload

This may or may not actually make things smaller. If, for example,
you have a lot of tags of revisions before Y, then these will no
longer be "cheap copies".

     --> http://svnbook.red-bean.com/en/1.1/ch04s02.html#svn-ch-4-dia-3

// Ben (bpsm)

To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-07-17 13:48:02 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

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