On 2009-08-25 19:09+0100 Andrew Ross wrote:

> While we're on the subject of patches, the svn patch command generates
> headers like
>
> Index: examples/c/x29c.c
> ===================================================================
> --- examples/c/x29c.c   (revision 10316)
> +++ examples/c/x29c.c   (working copy)
>
> for each file. This is not in the standard patch format (as described
> above by Alan). Does anyone have any neat way of applying these
> patches without having to hand edit the patch first? This would be
> useful when people send patches from their working copy that I
> would like to test on my working copy before applying to svn. I can't
> seem to find an easy way to do this with my version of patch, but I
> can't believe there isn't a solution.

How about using -p0 when patching from the top-level source tree?  I haven't
bothered now to try the above form by hand, but I know I have patched with
that svn form of patch (at least the one you get with svn diff) before with
no problems.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to