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

Re: How to combine 2 repositories

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-10-04 18:17:45 CEST

On Oct 4, 2007, at 10:31, Andy Levy wrote:

> On 10/4/07, Sumit.Srivastava@ubs.com wrote:
>
>> On Oct 4, 2007, at 10:23, Troy Bull wrote:
>>
>>> I have 2 repositories both have large histories. What I want to
>>> do is take repository number 2 and make it a sub directory of
>>> repository 1 and retain all history. It will be fine if the
>>> revision on repository 1 goes up by the number of revisions in
>>> repository 2. Can anyone tell me how to do this? Seems to me
>>> like I should be able to do something with dump of 2 and reload?
>>
>> You need to set the svn:externals property for implementing the same.
>>
>> Eg .
>>
>> svn:externals FOLDER https://path/to/repositpry
>
> That doesn't actually combine the repositories.
>
> I think this is more along the lines of what he's looking for:
> http://svn.haxx.se/users/archive-2004-10/1158.shtml

Right, that describes using svnadmin dump and svnadmin load --parent-
dir. The revisions of one or the other repository will be renumbered,
and you will get first all the revisions from one repo, then all the
revisions from the other repo, so that now your revisions are no
longer in chronological order. Besides being a little odd, this also
means you cannot use the Subversion feature where it finds revisions
by date (e.g. "svn log -r{2007-04-02}").

The user might instead want to combine the two repositories in such a
way that the revisions remain in chronological order. If so, a script
like this is necessary:

http://www.svnforum.org/2017/viewtopic.php?p=4431

Note that I have not used that script and cannot say whether it works
correctly. There may be other scripts like that available elsewhere.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 4 18:20:04 2007

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.