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

Re: Need Help : Purging very old (/unwanted) revisions

From: Thorsten Schöning <tschoening_at_am-soft.de>
Date: Wed, 5 Sep 2012 09:40:06 +0200

Guten Tag vinay modi,
am Dienstag, 4. September 2012 um 22:03 schrieben Sie:

> Now, I want to keep only the last 2 revisions of all documents i.e 2 for A,
> 2 for B, 2 for C and 1 for D..
> Is there any way I can achieve this in my subversion repository?

Not easily, you may have a look at svndumpfilter and script something
or else, but be aware that all working copies need a clean checkout
after that. The current working copies become useless, as the newly
created repo will have new revisions with completely new content.

Besides that, what exactly does "too large" mean? Storage, revision
numbers, directory structure, file number or else? This is very
important, because in your example you may even not save any space
after you did what you think about. Subversion did save your
documents completely in your first revision, after that changes to the
documents where only applied as diffs, depending on your documents
with very few data actually saved. If your documents are MBs of size
and you have 10 revisions with only some KBs in size each, you will
not save much space because even if you only save the last two
revisions your document has to be saved completely once, of course.

What is your repository version? New versions of Subversions
repository have a feature called representation sharing, which is some
kind of deduplication, helping to minimize actually needed storage a
lot. In my old repositories I was able to nearly half the size. The
other benefit would be that you only need a dump/load-cycle and you
can reuse your existing working copies, as revision numbers etc. won't
be changed.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening_at_AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
Telefon.............030-2 1001-310
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Received on 2012-09-05 09:40:53 CEST

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.