On Thu, Nov 13, 2008 at 02:33, <leemouse_at_mail.ru> wrote:
> Hi!
> Sorry for my terrible English - my born language is Russian.
>
> I found bug in subversion system - in svn program.
>
> When I create patch of my project (sources encoded in UTF-8) by command:
> svn diff --change 6 >myproject-6.diff
>
> - and then apply given patch to sources (revision 5) by command:
> patch --strip=0 --input=myproject-6.diff
>
> - I see second output:
> patching file handle-static-runtime.jam
> patching file libs/tree/test/main.cpp
> patching file libs/tree/test/Jamfile
> patching file libs/tree/include/dotconf/tree.hpp
> patching file libs/tree/Jamfile
> patching file libs/Jamfile
> missing header for unified diff at line 1782 of patch
> can't find file to patch at input line 1782
> Perhaps you used the wrong -p or --strip option?
>
> ================================================
> If I use GNU diff utility for create patch by second command:
> svn diff --diff-cmd diff --change 6 >myproject-6.diff
>
> - patch work correctly!!!
>
> I think, it is BUG in Subversion's svn program.
Please re-read your sequence of commands, and the svn output:
What you ran:
> - and then apply given patch to sources (revision 5) by command:
> patch --strip=0 --input=myproject-6.diff
Subversion reported at the end:
> Perhaps you used the wrong -p or --strip option?
Received on 2008-11-13 14:56:16 CET