patch -p0 < your_patch_file.patchSimilarly if you have modified the source tree, and want to create a patch for the changes that you made, from the source root:
svn diff > your_patch_file.patch
or giving the files/folders that you need to get the diff of, along with their relative path.
svn diff > path1/file1 path2/file2 path3/file3 > your_patch_file.patch
your_patch_file.patch will be created inside the root of the source tree. (You may specify the location too, as usual)
How to get the svn diff between two commits?
svn diff -r 5224:5225 > your_patch_file.patchgets the commit 5225 for the particular directory.
svn diff -r oldversion:newversion files > your_patch_file.patchgets the diff between the commits newversion and oldversion.