Question

I am stuck using an old svn client 1.4.4. I was able to create a patch using the standard approach of piping to a file:

svn diff > ~/bug_fix.diff

Is there any hope in applying this patch? I see that there is no "svn patch" sub-command in this version.

Would it be possible to use a newer client to apply the patch without breaking compatibility with 1.4.4?

Was it helpful?

Solution 3

cygwin ended up being the solution here for me:

diff -N -x .svn -rup ./original_trunk ./new_trunk > patch.diff

cd to ./original_trunk

patch -p0 < ../patch.diff

original trunk should now have the changes from new trunk.

Hardest part about this is getting the diff and patch utilities installed in cygwin. I installed the patch utility using apt-cyg and diff I found in the cygwin installer.

OTHER TIPS

Is there any hope in applying this patch?

It can be compatible with ordinary OS patch command

Apply subversion diff file by using the patch utility (or patch.exe on windows.)

patch -p0 < ~/bug_fix.diff

or

patch.exe -p0 < ~/bug_fix.diff
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top