Menu

patch created by diff cant be applied w patch

Help
kongomongo
2010-10-03
2012-07-26
  • kongomongo

    kongomongo - 2010-10-03

    Hi,

    I tried using diff/patch to create a patch that I will be constantly applying
    against new versions downloaded via svn.

    I created a patch by using diff -u -r on a folder structure which works just
    fine. The diff has the relative paths in it like "folder1/file1.txt".

    However, when I apply it using patch < mypatch it says it can't find the file
    (although it states the correct path). Am I doing something wrong?

     
  • kongomongo

    kongomongo - 2010-10-03

    Hmmm, seems like i was using the wrong -p option in patch...

     
MongoDB Logo MongoDB