Peter Samuelson wrote:
> [Stefan Küng]
>> $ svn mv testwc\file.txt testwc\file2.txt
>> $ svn diff testwc > patch.txt
>>
>> now patch.txt only contains the deletion of file.txt, but not the add
>> of file2.txt.
>
> That is how 'diff' has always worked, isn't it? I believe the reason
> is that it is more useful to show the diff of the file contents, rather
> than just depicting the whole new file. Of course this means if you
> did not edit the file after the 'svn cp' or 'svn mv', there will be
> nothing in the diff.
>
> There is also a --no-diff-deleted to make the 'svn mv' case more symmetric.
No, in previous versions, both the deleted and added part was included
as it should.
Think about it: if you specify --no-diff-deleted then the patch would be
empty because neither the deletion nor the addition would be included.
And that doesn't make any sense at all.
Stefan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2371480
Received on 2009-07-17 01:00:56 CEST