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

Re: Can I merge two repository to one?

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Wed, 11 Mar 2009 13:44:29 -0500

On Mar 11, 2009, at 05:50, Talden wrote:

>> On 2009/3/11 Ryan Schmidt wrote:
>>
>>> On Mar 10, 2009, at 21:34, Buddy wu wrote:
>>>
>>>> I mean I have two repos, A and B.
>>>> IN A , i have a directory like A/first
>>>> IN B , I have a direcotry like B/second
>>>> then I want' to move repo B to A and merge them , not replace. I
>>>> want
>>>> get the resulet:
>>>> IN A, It should be like A/first;A/second. and the "sencond"
>>>> directory
>>>> in repo A should be maitan the history in repo B
>>>>
>>>> how to do this in subvertion? can it be realized?
>>>
>>> Of course:
>>>
>>> http://subversion.tigris.org/faq.html#multi-merge
>
> There's a caveat though right... The revisions of B are loaded after
> the revisions of A. This means that there is not a single ascending
> date order to the revisions which will break date-based operations.

Right, but that's the only implication as far as I know. If you don't
plan to use any date-based operations, there's no problem. And if you
do:

> I don't think there's a solution to this in Subversion - for a good
> solution to this you probably need to look at one of the distributed
> version control tools and they have their own compromises.

The solution is to dump both repositories and interleave their
revisions as you load them both into a new repository. See the last
paragraph of the link I provided above for two scripts that do this
for you.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-11 19:45:31 CET

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.