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

svn merge silently reverts changes to renamed files

From: David James <james82_at_gmail.com>
Date: 2005-11-08 23:26:12 CET

If you rename a file, change the content of it, and then revert the
rename, Subversion will also silently revert the content changes. This
seems to be a bug. Here's a reproduction recipe.

Reproduction recipe (attached as recipe.txt):
 svnadmin create repo
 svn co file://`pwd`/repo wc
 cd wc
 echo Hello World > file.txt && svn add file.txt && svn commit -m
"Adding file.txt"
 svn mv file.txt file2.txt && svn commit -m "Renaming file.txt"
 echo Goodbye World > file2.txt && svn commit -m "Changing content of
file2.txt"
 svn merge -r2:1 . && svn commit -m "Reverting rename of file2.txt"
 cat file.txt

Expected Output: Goodbye World
Actual Output: Hello World

For a real-world example of a merge corrupted by this bug, see r16540.
I asked Subversion to revert r16529, but Subversion also silently
reverted portions of r16536.

Cheers,

David

--
David James -- http://www.cs.toronto.edu/~james


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Tue Nov 8 23:27:13 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.