How to apply an svn diff

Chris Rees utisoft at
Wed Jan 9 07:23:25 UTC 2013

On 8 Jan 2013 21:52, "David Wolfskill" <david at> wrote:
> On Tue, Jan 08, 2013 at 03:47:30PM -0600, Paul Schmehl wrote:
> > Once you've created an svn diff and submitted it using send-pr, how is
> > diff applied to update the port?  I can't seem to figure this out from
> > reading the svn docs.
> > ....
> The approach I prefer involves invoking "svn patch".  (This is not
> specific to ports, btw.)
> g1-227(9.1-S)[1] 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.
> ....

I intensely dislike the way svn patch wants a file specified rather than
using stdin; my technique is to use curl "url" | patch.  I'll fix that one
of these days...


More information about the freebsd-ports mailing list