[Svnmerge] Patch for non-reflected bidirectional merging support
Raman Gupta
rocketraman at fastmail.fm
Thu Aug 25 23:21:23 PDT 2005
Hi all,
I have attached two patches. The first is incidental and fixes a couple
of bugs svnmerge that I found while testing. These bugs are:
1) The get_all_integrated_revs method was not being passed the
BRANCH_DIR, causing the integrated revisions for some merge target
branches to be lost when tracking integrated revisions for multiple targets.
2) The merge algorithm did not revert changes to the svn-integrated
property for each range being merged, which caused a conflict if more
than one range being merged contained a change to the svn-integrated
property.
The second, and far more interesting, patch adds merge-point tracking.
This improves the bi-directional merging support of svnmerge by
preventing reflected changes from being merged. See here for initial
discussion fo the problem, and a description of the solution implemented
in the patch:
http://www.orcaware.com/pipermail/svnmerge/2005-August/000000.html
I have not done extensive testing on this patch, nor have I yet used it
in a real-life production situation. So please review it carefully and
use caution if you decide to use this on production data.
One caveat is that when bi-directional merging is happening between
multiple branches e.g. trunk to/from branch1, and trunk to/from
branch2,the merge-point dot-files can be propagated between branches,
even if merge tracking has not been initialized between them i.e. you
might end up with a branch1 merge-point tracking file on branch2. This
doesn't bother me enough to fix, but if it does bother somebody, fixing
it should be relatively simple.
Archie, I hope that you can review the patches and consider them for
inclusion in svnmerge. You may want to optimize the shell scripting, and
add some niceties, such as for example turning off (or on) the
merge-point tracking via argument, and so forth.
Cheers,
Raman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sha1sum svnmerge*.patch
de195d1d8de0450137f1c393914231088db9bec3 svnmerge-bidirectional.patch
e637ee3f2f13692adf0db8ce615b487ec2a9f123 svnmerge-bugfixes.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDDrP3aEIcY+eF4JQRAlmVAKCsmbhdLCcFtw08q+dd2BptOUQwPwCfWKAj
vV9JEp1lvNdrTk5/vu+1c0g=
=2Pj9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svnmerge-bidirectional.patch
Type: text/x-patch
Size: 2596 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20050826/b00b73f7/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svnmerge-bugfixes.patch
Type: text/x-patch
Size: 1122 bytes
Desc: not available
Url : /pipermail/svnmerge/attachments/20050826/b00b73f7/attachment-0001.bin
More information about the Svnmerge
mailing list