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?
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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.