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

Re: Merge from branch to trunk

From: John Allen <john.allen_at_dublinux.net>
Date: Mon, 08 Sep 2008 08:25:47 +0100

jiri.pejchal_at_gmail.com wrote:
> Ryan Schmidt <subversion-2008c_at_ryandesign.com> writes:
>
>
>> On Sep 3, 2008, at 11:03 AM, jiri.pejchal_at_gmail.com wrote:
>>
>>
>>> we have a trunk with our application and two branches with the same
>>> application that has different database backends implemented (some
>>> files
>>> are different).
>>>
>>> I would like to keep the trunk and the two branches in sync except
>>> for those
>>> files that are different (about ten files).
>>>
>>> Ideally if trunk changes copy the changes to branch1 and branch2,
>>> if branch1 changes copy the changes to trunk and branch2,
>>> if branch2 changes copy the changes to trunk and branch1.
>>> (except those files that will always be different).
>>>
>>> Is it possible?
>>> What is the recommended procedure?
>>>
>> If you want to keep these as separate branches, then you will need to
>> periodically merge changes.
>>
>> Personally I would recommend keeping everything together in one
>> consolidated version of the source, with e.g. (if it was written in
>> C) #ifdefs around the things that you want to be different between
>> the different versions.
>>
>
> It's written in java. Hm, I thougt the branches and merging would be the
> right solution.
>
>
Building you software as components would be the right solution. Build
the app and the 3 db backends seperately,
then assemble them as 3 distinct deliveries.

App + DB backend1 = delivery1
App + DB backend2 = delivery2
App + DB backend3 = delivery3
>>> Acording to the subversion book when I do:
>>>
>>> svn merge --reintegrate http://svn.example.com/repos/calc/branches/
>>> my-calc-branch
>>> in working copy of the trunk the branch is no longer usable for
>>> development.
>>>
>> That doesn't sound correct... What does the book say exactly?
>>
>
> In Subversion 1.5, once a --reintegrate merge is done from branch to
> trunk, the branch is no longer usable for further work. It's not able to
> correctly absorb new trunk changes, nor can it be properly reintegrated
> to trunk again. For this reason, if you want to keep working on your
> feature branch, we recommend destroying it and then re-creating it from
> the trunk.
>
>
> Jiri Pejchal
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-08 09:26:36 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.