merge situation where line is duplicated - a bug?
From: Trent Cobham <trent_at_warsheep.org>
Date: 2006-10-11 17:24:26 CEST
I have a particular merge situation (below) where an identical line
If I replicate the situation with either gnu patch (2.5.4) or
I understand that applying a change twice may be something of a roll
Specifically, if I have an identical file on trunk & branch, then:
1. On both trunk & branch: add (the same) line to the file.
Then the merged output comes out as:
modified line
(ie the added line appears twice in the result).
If instead on step 2 I modify the line _below_ the added line, I get
If instead on step 2 I modify the line 2 lines above the added line,
If I omit step 2, then the merge doesn't change the file (ie the
So adding the line twice looks unintentional to me.
I've tested this with a test file - 13 lines 'aaa' to 'mmm':
the 'trunk' adds a line (XXX)
@@ -5,6 +5,7 @@
the 'branch' adds the same line (XXX), and changes the line above it
@@ -4,7 +4,8 @@
After merging branch onto trunk, with svn 1.3 or 1.4, I get:
eee
ie two copies of XXX.
When I try it with the gnu patch command (and a unified diff),
***************
When I try the same in CVS, I get a conflict.
eee
---------------------------------------------------------------------
|
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.