Warum ist patch Ablehnung meines patch-Datei auf eine SVN Arbeitskopie?

Habe ich ein patchfile wie diese:

Index: dir/file.xml
===================================================================
--- dir/file.xml    (revision 178)
+++ dir/file.xml    (working copy)
@@ -7,7 +7,7 @@
    <markup>
-   <markup />
+   <markup></markup>
    <markup>
    <markup>
@@ -20,6 +20,7 @@
    <markup>
    <markup>
+   <tag>
    <markup>

Anwenden, um die SVN-Arbeitskopie, ich verzweigt es mit:

$ svn copy -r 178 trunk/component/dir branches/mybranch

Dann habe ich versucht

$ cd branches/mybranch
$ ls -R
./dir:
file.xml
$ patch -p0 -i ~/patchfile.patch

aber SVN Ausgabe

(Stripping trailing CRs from patch.)
patching file dir/file.xml
Hunk #1 FAILED at 7.
Hunk #2 FAILED at 20.
2 out of 2 hunks FAILED -- saving rejects to file dir/file.xml.rej

für jede Datei?

Was könnte der Grund SVN zur Ablehnung der patch??? Ich bin auf einem UNIX-Rechner, aber patch und repository haben Windows-line-endings...

Danke für die Hilfe!

InformationsquelleAutor Simon | 2011-01-14
Schreibe einen Kommentar