You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by List Man <li...@bluejeantime.com> on 2011/04/28 07:02:06 UTC

Merging two projects in two different repos

I want to take one project from one repo and put it in a directory under another repo.  Is it possible to keep the history of said project?


TIA,

Listman

Re: Merging two projects in two different repos

Posted by Les Mikesell <le...@gmail.com>.
No, but if you don't have file access to the source repository you can 
use svnsync to copy it to a location where you do have access.  Then you 
can svnadmin dump/filter and load to your desired project location.  The 
dump/filter/load is a one-time process and has the problems of making 
your date ranges non-contiguous and changing the revision numbers of the 
imported content that have already been mentioned.  But, it does let you 
put the project where you want and keep the (renumbered) history of changes.


On 4/29/2011 5:19 PM, List Man wrote:
> Svnsync does not allow the project/sub-directory in this case to be updated in the future, according to what I read.  Is this information incorrect?  I have never used svnsync before.
>
> TIA,
>
>
> On Apr 28, 2011, at 8:58 AM, Daniel Shahaf wrote:
>
>> Ulrich Eckhardt wrote on Thu, Apr 28, 2011 at 12:27:07 +0200:
>>> On Thursday 28 April 2011, List Man wrote:
>>>> I want to take one project from one repo and put it in a directory under
>>>> another repo.  Is it possible to keep the history of said project?
>>>
>>> No, not through the client interface, which is what you use for everyday work.
>>>
>>
>> *cough* svnsync?
>>
>>> If you have direct access to the repository, you could use e.g. the dumpfilter
>>> tool to change history retrospectively.
>>>
>>>
>>> Cheers!
>>>
>>> Uli



Re: Merging two projects in two different repos

Posted by List Man <li...@bluejeantime.com>.
Svnsync does not allow the project/sub-directory in this case to be updated in the future, according to what I read.  Is this information incorrect?  I have never used svnsync before.  

TIA,


On Apr 28, 2011, at 8:58 AM, Daniel Shahaf wrote:

> Ulrich Eckhardt wrote on Thu, Apr 28, 2011 at 12:27:07 +0200:
>> On Thursday 28 April 2011, List Man wrote:
>>> I want to take one project from one repo and put it in a directory under
>>> another repo.  Is it possible to keep the history of said project?
>> 
>> No, not through the client interface, which is what you use for everyday work.
>> 
> 
> *cough* svnsync?
> 
>> If you have direct access to the repository, you could use e.g. the dumpfilter 
>> tool to change history retrospectively.
>> 
>> 
>> Cheers!
>> 
>> Uli
>> 
>> 
>> -- 
>> ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
>> FAQ: http://subversion.apache.org/faq.html
>> Docs: http://svnbook.red-bean.com/
>> 
>> **************************************************************************************
>> Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
>> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
>> **************************************************************************************
>> Visit our website at http://www.dominolaser.com
>> **************************************************************************************
>> Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
>> E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
>> **************************************************************************************
>> 


Re: Merging two projects in two different repos

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Ulrich Eckhardt wrote on Thu, Apr 28, 2011 at 12:27:07 +0200:
> On Thursday 28 April 2011, List Man wrote:
> > I want to take one project from one repo and put it in a directory under
> > another repo.  Is it possible to keep the history of said project?
> 
> No, not through the client interface, which is what you use for everyday work.
> 

*cough* svnsync?

> If you have direct access to the repository, you could use e.g. the dumpfilter 
> tool to change history retrospectively.
> 
> 
> Cheers!
> 
> Uli
> 
> 
> -- 
> ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
> FAQ: http://subversion.apache.org/faq.html
> Docs: http://svnbook.red-bean.com/
> 
> **************************************************************************************
> Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
> **************************************************************************************
> Visit our website at http://www.dominolaser.com
> **************************************************************************************
> Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
> E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
> **************************************************************************************
> 

Re: Merging two projects in two different repos

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 28, 2011, at 05:27, Ulrich Eckhardt wrote:
> On Thursday 28 April 2011, List Man wrote:
>> I want to take one project from one repo and put it in a directory under
>> another repo.  Is it possible to keep the history of said project?
> 
> No, not through the client interface, which is what you use for everyday work.
> 
> If you have direct access to the repository, you could use e.g. the dumpfilter 
> tool to change history retrospectively.

That is to say, you can "svnadmin dump" the repo that contains the project now, "svndumpfilter" the dumpfile to extract only that project, and then "svnadmin load" it into the new repository. If you don't have access to the old repository, you can "svnsync" the old repository to a new empty repository on your machine, then "svnadmin dump" that.

Loading the project into the new repository will probably destroy your ability to use dates as revisions in the new repository, because revisions will probably no longer be chronological. To work around that, you can dump the new repository too, and use svndumptool to merge the two dumpfiles with revisions interleaved in chronological order. This will renumber your old revisions though, and everyone will have to check out new working copies of the new repository, and you may not like either of those consequences either.






Re: Merging two projects in two different repos

Posted by Ulrich Eckhardt <ul...@dominolaser.com>.
On Thursday 28 April 2011, List Man wrote:
> I want to take one project from one repo and put it in a directory under
> another repo.  Is it possible to keep the history of said project?

No, not through the client interface, which is what you use for everyday work.

If you have direct access to the repository, you could use e.g. the dumpfilter 
tool to change history retrospectively.


Cheers!

Uli


-- 
ML: http://subversion.apache.org/docs/community-guide/mailing-lists.html
FAQ: http://subversion.apache.org/faq.html
Docs: http://svnbook.red-bean.com/

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************