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

FW: Not able to filter out the old revisions / rearrange the revisions in project

From: Pulkit Kumar <pulkit_kumar_at_persistent.co.in>
Date: Thu, 23 Jul 2009 12:41:22 +0530

Hello All,

There is some confusion in my below mail so just to be more specific:

In our SVN environment we have multiple projects in a single repository lets say X, I have imported a project lets say Y in a new repository lets say Z by using svnsync utility and the project Y was mirrored successfully in the new repository Z.

 Now the project Y in repository Z is having all the committed revisions for all other projects that are present in repository X, those revisions are like empty revisions present project Y.

For e.g. Ideally project Y is having 1000 commits so it should have only 1000 revisions but it is having more than 20,000 revisions means 19,000 commits are of other projects in repository X

Again, I executed following commands:

1) On Windows : svnadmin dump /path to repo/|svndumpfilter --drop-empty-revs --renumber-revs --skip-missing-merge-sources include Y > Y_final

                                              svnadmin load /path/to/targetrepo/ < Y_final

        2) On UNIX: cat dump | svndumpfilter include Y --drop-empty-revs --renumber-revs > dump_final

But again none is solving the purpose.

Any pointers on the same will be highly appreciated.

Regards,
Pulkit

________________________________
From: Pulkit Kumar
Sent: Thursday, July 23, 2009 10:47 AM
To: 'users_at_subversion.tigris.org'
Cc: 'Vivek Payala'
Subject: Not able to filter out the old revisions / rearrange the revisions in project

Hello All,

Greetings for the day!!!!!

In our SVN environment we have multiple projects in a single repository lets say X, I have imported a project lets say Y in a new repository by using svnsync utility and the project Z was mirrored successfully in a new repository lets say Y.

Now the project Y in repository Z is having all the revisions that are present in repository X, those revisions are like empty revisions present project Y.

To filter out the old revisions / rearrange the revisions in project Y (e.g. 1,2,3....n excluding the empty revisions) I have executed the following commands:

1) svnadmin dump /path/to/sourcerepo/ | svndumpfilter --drop-empty-revs --skip-missing-merge-sources include /folder/to/move/ > dumpfile

svnadmin load /path/to/targetrepo/ < dumpfile

2) svnadmin dump /path/to/sourcerepo/ | svndumpfilter --renumber-revs --skip-missing-merge-sources include /folder/to/move/ > dumpfile

svnadmin load /path/to/targetrepo/ < dumpfile

But none of them solved the purpose.

Kindly let me know whether this is a known issue with svndumpfilter or the approach that I am following is incorrect.

Regards,
Pulkit

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-23 09:12:43 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.