[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: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: Thu, 14 May 2009 17:56:57 +0530 (IST)

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.

Thanks,
Himanshu Raina

--- 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 http://beta.cricket.yahoo.com

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

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