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

RE: Is merging branches reliable?

From: Zsolt <zkoppanylist_at_intland.com>
Date: 2006-05-06 10:33:12 CEST

Jacob,

I'm not sure what you mean but I give you an example.

- 1-may I make a new-branch (testbr) on a trunk. The file a.java was
modified on 15-apr.

- I modify a.java on the trunk on the 2-may.

- On testbr, a.java IS NOT modified.

- On 4-may I merge testbr to the trunk.

If the a.java testbr overwrites a.java on the trunk it has nothing to do
with merge. The entire content of the branch overwrite the trunk, the
version control system is just USELESS.

Zsolt

>-----Original Message-----
>From: Jacob Atzen [mailto:jacob@aub.dk]
>Sent: Saturday, May 06, 2006 9:54 AM
>To: users@subversion.tigris.org
>Subject: Re: Is merging branches reliable?
>
>On Sat, May 06, 2006 at 09:40:25AM +0200, Zsolt wrote:
>> you have a file a.java in the main trunk for example with last
>> modification 6-may-2006 and you have a file on a branch with the
>> modification 1-may-2006 (with the original content of a.java from the
>> trunk). Why should be copied this old file back to the main trunk?
>
>Because you asked for it. When you do your merge you must supply the
>revision span you want to merge. If you ask for the differences from
>1-may to 6-may of your branch you will get nothing and the merge will
>not alter the a.java in your trunk. OTOH if you ask for the differences
>from the initial addition of a.java to 6-may you will get a.java as it
>looks in your branch on 6-may and that will be merged into your trunk.
>
>Read section 4 of the Subversion book, it should explain these things.
>
> http://svnbook.red-bean.com/nightly/en/svn.branchmerge.html
>
>--
>Cheers,
>- Jacob Atzen
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat May 6 10:34:08 2006

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.