title: How to apply diff made by windows SVN on linux?
body: <p>On windows i created a multi-file diff with:</p>
  
  <pre><code>svn diff &gt; mydiff.diff
  </code></pre>
  
  <p>Then moved it to linux machine (with the same version of the same repo, no changes). How cai i apply it? After executing</p>
  
  <pre><code> patch -p0 &lt; mydiff.diff
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>patching file licstat/test/unittest/test_licstatactioncontainers.cpp
  File licstat/test/unittest/test_licstatactioncontainers.cpp is not empty after patch, as expected
  patching file licstat/test/unittest/test_licstatactions.cpp
  Hunk #1 FAILED at 99.
  1 out of 1 hunk FAILED -- saving rejects to file licstat/test/unittest/test_licstatactions.cpp.rej
  can't find file to patch at input line 295
  Perhaps you used the wrong -p or --strip option?
  The text leading up to this was:
  --------------------------
  |Index: licstat/test/unittest/test_licenseserverusagemap.cpp
  |===================================================================
  |--- licstat/test/unittest/test_licenseserverusagemap.cpp       (revision 6767)
  |+++ licstat/test/unittest/test_licenseserverusagemap.cpp       (working copy)
  --------------------------
  File to patch: 
  </code></pre>
  
  <p>And the last line is prompt waiting for my action.</p>
  
  <p>How should I create/apply the patch to make it work?</p>
  
  <p>(edit) Now I see, that the file was missing and diff didn't create it. After creating the file manually I get errors like this:</p>
  
  <pre><code>patching file licstat/misc/generic/mysql/stored_procedures.sql
  Hunk #1 FAILED at 220.
  Hunk #2 FAILED at 245.
  Hunk #3 FAILED at 622.
  Hunk #4 FAILED at 661.
  Hunk #5 FAILED at 810.
  Hunk #6 FAILED at 822.
  Hunk #7 FAILED at 868.
  Hunk #8 FAILED at 999.
  8 out of 8 hunks FAILED -- saving rejects to file licstat/misc/generic/mysql/stored_procedures.sql.rej
  </code></pre>