The Patch Seems Outdated! The File Line...And The Patchline Do Not Match

Update (1st September 2008):  This turned out to be a bug in TortoiseSVN that has now been fixed.  Thanks to Stefan Küng whom fixed this bug within 24 hours of me posting it in the TortoiseSVN Google Group (it will be available in the midnight build).  If you use TortoiseSVN a lot send Stefan some money or contribute to the project costs.

I am having a problem testing the application of several minor patches I have written for dasBlog.  I am using TortoiseSVN to create the patch, and apply the patch to a clean checkout of the dasBlog source tree.  When I try and apply any of the 3 patches, the project files (.csproj) show up red in the file patch list:

image

Fair enough I say.  But when I right click the csproj and say "Preview patched file", I get the error message:

The patch seems outdated!  The file line ... and the patchline ... do not match!

Image of TortoiseMerge Error - The patch seems outdated!  The file line ... and the patchline ... do not match!

The file line and patch line in the error message itself look the same to me.  Looking at them raw in Notepad2 also seems to suggest they are the same (bar the single space at the beginning of the patch line, which I think is normal and part of the diff file format as all the other changes have this space).

Patch Line in Notepad2

image

File Line in Notepad2

image

The offending line is the first line of the change in the patch file.  The rest of this change can be seen below.  It is just a change of the ProductVersion number.  If I delete this change out of the patch file, the patch can then be applied successfully (including the other csproj changes I did not delete).

So is this a bug, is there a difference I can't see, or am I doing something wrong?

image