質問

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?

役に立ちましたか?

解決 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.

他のヒント

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
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top