Merge bug -- svn:keywords and conflict resolution
From: Varnau, Steve (Seaquest R&D) <steve.varnau_at_hp.com>
Date: Mon, 26 Mar 2012 17:26:18 +0000
Hello,
We had some developers changing svn:keywords property, which caused merge conflicts for other people pulling in the changes via sync merges. The developers merging the change into their branch were surprised to get merge conflicts in files they had not changed.
I figured out that svn merge was actually correct in flagging a conflict, but does not present the conflicting lines correctly. The presentation is not correct, since what is shown in the merged file as the right side of the merge does not match the file.merge-right.rREV file.
We noticed the behavior in 1.7.3 command-line client on Linux, then reproduced it in 1.7.4 command-line on Windows. I could not find a relevant bug in the issues list.
I admit that the scenario to get to the incorrect behavior is not something one would normally do intentionally. It involves removing a keyword from the svn:keywords property, while leaving the expanded keyword in the contents of the file.
Shell script to reproduce is below.
-Steve
REPO=file:///work/repo
cd ..
cd trunk
cd ../br1
cd ../trunk
cd ../br1
### Here's the bug -- why do both sides of conflict show same content?
### If we look at merge files, we see a different story
cat keyfile.merge-left.r4
cat keyfile.merge-right.r6
|
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.