0

I have a patch generated with diff command:

diff -ruN orig/ new/ > file.patch

I want to apply this patch on svn repo with svn utilities. How to do that?

1 Answer 1

5
$ svn help patch

patch: Apply a patch to a working copy.

usage: patch PATCHFILE [WCPATH]

Apply a unidiff patch in PATCHFILE to the working copy WCPATH. If WCPATH is omitted, '.' is assumed.

A unidiff patch suitable for application to a working copy can be produced with the svn diff command or third-party diffing tools. Any non-unidiff content of PATCHFILE is ignored, except for Subversion property diffs as produced by svn diff.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.