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

Re: Flattening a repository.

From: Karl Heinz Marbaise <khmarbaise_at_gmx.de>
Date: Sun, 18 Jan 2009 16:51:03 +0100

Hi David,

> Over the years, the size of this repository has grown to represent over
> 12Gb. Most of which consists of redundant change sets (deleted files
> mostly).
> I would like to improve this situation by flattening the repository so
> that only 3-6 months of changes are kept.
Why would you like to remove things ? Do you have problems with the
repository ? Only 12 Gb ? I have repositories which 30-40 GB ...

> My plan was to use the following command to do this:
> svnadmin dump enki_old/ -r {`date --date="6 months ago" +%Y-%m-%d`}:HEAD
> | svnadmin load enki
> The problem is that using this command I invalidate every checkout of
> the repository (I get invalid revision errors). Re-checking out will be
> onerous for me as the checkouts are around 4Gb in size, and a lot of our
> users are non-technical.
If you really like to do this simply do a check via svn log and see
which revision is older than six months and remove the contents in the
dump file....

> Is there any way for me to do this operation in a way that my users can
> just update their checkouts to be in sync with the new repository?
You have to use the --force-uuid in the new repository....
But this is only the first part of the plan, cause you'll change the
highest revision number....and that's the problem here...

Kind regards
Karl Heinz Marbise

SoftwareEntwicklung Beratung Schulung    Tel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz Marbaise        ICQ#: 135949029
Hauptstrasse 177                         USt.IdNr: DE191347579
52146 W├╝rselen                           http://www.soebes.de
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-18 16:52:08 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.