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

Re: Keeping a branch updated

From: Blair Zajac <blair_at_orcaware.com>
Date: 2006-09-01 19:08:26 CEST

Andrew Durdin wrote:
> This is the second time that this conundrum has turned up for me, and I
> haven't figured out the answer yet: I'm working on a branch of a
> project that is implementing a large feature. Part way through its
> development, I notice that there are significant changes in the trunk
> that will cause a conflict with my code when it's merged. To keep on
> top of this, and keep the future conflicts as small as possible, I want
> to incorporate this change (or perhaps all the trunk changes up to this
> point) into my branch, so that it doesn't get too far out of sync with
> the trunk. Now, this might happen several times during the lifetime of
> the branch.
>
> When the feature is completed, and it comes time to merge the branch
> features back into the trunk, what's the best way to approach it? If I
> just try to merge the whole branch's history, then I get conflicts due
> to the same changes (that were synchronised) being present in both the
> trunk and the branch. If I try to merge the history between
> synchronisations of the branch (first from creation up to the first
> sync, then after the first sync to the second sync, etc.), then I end
> up having to again resolve the conflicts that I resolved at each
> synchronisation.
>
> Is there a better way to manage this process?

Yes, use svnmerge.py to set up merging in either direction.

http://www.orcaware.com/svn/wiki/index.php/Svnmerge.py

We use it at work for per-developer branches and it works great.

You set up svnmerge.py on the branch and on the trunk and with the -b command
line option, if you only use svnmerge.py to do your merges, then svnmerge.py
will not merge changes from your branch back into the trunk the originated from
the trunk.

Regards,
Blair

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 1 19:10:19 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.