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

Re: Removing unwanted data/release !!

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 14 May 2009 10:05:17 -0400

On Thu, May 14, 2009 at 08:26, Himanshu Raina <raina_himanshu_at_yahoo.com> wrote:
> Hi,
>
> Dumping the repository and importing only unwanted data would change the
> revision number i.e say (of total 1000 revisions) if I dump revision
> 900-1000 from my existing repo and then create a new repo and load the dump
> file it would change the revision number from 1000 to 100 (i.e. 900-1000
> would become 0-100). My requirement is to delete all older revisions and
> keep only the latest ones (assuming I don't need older revisions) without
> disturbing the revision numbering i.e. when I checkout or update my existing
> copy it shouldn't give me a conflict owing to changes made by me.

You can't do that without creating empty "dummy" revisions.

Ask yourself again if it's really necessary. What kind of growth are
you dealing with? Why are you putting these things in the repository
if you don't care about losing history?

>
> --- On Thu, 14/5/09, Andy Levy <andy.levy_at_gmail.com> wrote:
>
> From: Andy Levy <andy.levy_at_gmail.com>
> Subject: Re: Removing unwanted data/release !!
> To: "Himanshu Raina" <raina_himanshu_at_yahoo.com>
> Cc: users_at_subversion.tigris.org
> Date: Thursday, 14 May, 2009, 3:59 PM
>
> On Thu, May 14, 2009 at 03:30, Himanshu Raina <raina_himanshu_at_yahoo.com>
> wrote:
>> Hi,
>>
>> I have multiple repositories setup on my SVN server. As large number of
>> commits are made the repository size keeps increasing regularly. Is there
>> a
>> way I can get rid of all unwanted revisions i.e. for example my current
>> repo
>> version is 4500 and I would want to keep only last 100 revision and delete
>> all other. Is it possible and if yes then how ?
>
> The whole point of a system like Subversion is to preserve your
> history. It's assumed that ALL revisions are wanted.
>
> Unless you're changing many very large binary files, or doing your
> moves & copies wrong, your repository should not be growing too
> quickly. What kind of growth are we talking about here?
>
> It is possible to remove revisions, but it requires taking the
> repository offline, dumping the contents, then loading what you want
> left in the repository (see
> http://svnbook.red-bean.com/en/1.5/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering
> ). And depending on your repository activity, doing so can actually
> *increase* the size of your repository.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2254452
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_subversion.tigris.org].
>
> ________________________________
> Cricket on your mind? Visit the ultimate cricket website. Enter now!

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2257837

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-14 16:06:34 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.