You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2013/01/21 05:32:24 UTC

Re: svn commit: r1436005 - /subversion/trunk/subversion/tests/cmdline/patch_tests.py

rhuijben@apache.org wrote on Sun, Jan 20, 2013 at 23:26:11 -0000:
> Author: rhuijben
> Date: Sun Jan 20 23:26:10 2013
> New Revision: 1436005
> 
> URL: http://svn.apache.org/viewvc?rev=1436005&view=rev
> Log:
> * subversion/tests/cmdline/patch_tests.py
>   (single_line_mismatch): Add issue number and make sure all filenames match.
>     Somehow the patch was applied to the right target without this fix.
> 

IIRC, 'svn patch' tries all filenames it finds --- the "---" header, the "+++"
header, and the "Index" header --- and uses the first one that exists.

Thanks for the fixes to the other patch test.

Daniel

> -    "Index: tests\n",
> +    "Index: test\n",
>      "===================================================================\n",
> -    "--- tests\t(revision 1)\n",
> +    "--- test\t(revision 1)\n",
>      "+++ test\t(working copy)\n",
>      "@@ -1 +1 @@\n",
>      "-foo\n",
> 
>