Please try to post in * plain * text (not html or rich text).  We also prefer 
to add text in-line or at the bottom as it makes it easier to read the whole 
story...

>       From: vinay modi [mailto:modivi...@gmail.com 
> <javascript:_e({}, 'cvml', 'modivi...@gmail.com');> ] 
>       Sent: Tuesday, September 04, 2012 4:04 PM
>       To: users@subversion.apache.org <javascript:_e({}, 
> 'cvml', 'users@subversion.apache.org');> 
>       Subject: Need Help : Purging very old (/unwanted) revisions
> 
>       Hi
> 
>       My organization's svn repository size has grown too 
> large and most of the old revisions of documents are never being used.

Can we stop here and ask what the problem actually is?  There are repositories 
around with millions of revisions and files that work without problems, so what 
are your issues?

>       Consider I have 4 documents in my repository, of which 
> I have 10 revisions:
>       4 for document A
>       3 for document B
>       2 for document C
>       1 for document D.
> 
>       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?

Short answer: no.

Long answer: subversion (along with other such tools) is designed to keep all 
your history!  Removing stuff is not generally considered "a good thing" and is 
therefore not something you can easily do.

As JPM mentions below, it probably can be done, with a lot of effort by someone 
who knows what they are doing, but I would urge you to consider and explain why 
you think this is necessary.  There may be other ways around whatever problems 
you are having that we can suggest once we understand your issues.

~ mark c

>       Thanks in Advance
> 
>       Regards
> 
>       Vinay
> 
> On Wednesday, September 5, 2012, John Maher wrote:
> 
>       Hello,
> 
>       You can create a new repository then get the second to 
> last revision and use that to create a new project in that 
> new repository.  Then create a working copy and replace it 
> with the current revision.  Then do a commit and you're done.
> 
>       JPM
> 

Reply via email to