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

Re: just upgraded to svn 1.5 - confused

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 28 Apr 2011 21:28:09 -0400

On Thu, Apr 28, 2011 at 20:27, Totte Karlsson <tottek_at_gmail.com> wrote:
> Someone said that merges are easy.. I have read the svn book about merges
> but it does not help.
>
> I create a branch and I can keep it synchronized with the trunk.
> I can even re-integrate the branch with the trunk.
>
> From now on, it seems the branch is useless since I can't continue working
> on it and re-sync with the trunk without getting absolutely nonsense
> conflicts.. :)
>
> What is the proper, if any, philosophy here? Shall one create a new branch
> each time it is re integrated with the trunk?

If you want to keep the branch alive, don't use --reintegrate.

From the fine manual:

"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"

You will want to read
http://svnbook.red-bean.com/nightly/en/svn.branchmerge.advanced.html#svn.branchmerge.advanced.reintegratetwice
if you plan on using --reintegrate while keeping the branch around.
Received on 2011-04-29 03:29:15 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.