[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn diff --svnpatch & svn patch

From: Charles Acknin <charlesacknin_at_gmail.com>
Date: 2007-09-08 11:49:45 CEST

On 9/7/07, Ben Collins-Sussman <sussman@red-bean.com> wrote:
> I have a dumb question: is there a design-doc somewhere that
> describes how to use the feature? I mean, some really simple
> instructions that demonstrate the new commands and switches, so we
> understand how to do the testing?

The design doc is at
http://svn.collab.net/repos/svn/branches/svnpatch-diff/notes/svnpatch.
 It doesn't tell how to use the feature but instead how it works,
though.

Anyway, using the feature is as simple as appending --svnpatch to 'svn
diff' subcommand to produce the output ('svn help diff' tells about
the option), and then use 'svn patch' to apply the patch ('svn help
patch' also available. (Oops, I have to update this help section so
that users know Unidiff isn't supported right now.))

So, in a nutshell,
  1. svn diff --svnpatch > /path/to/output.patch
  2. svn patch /path/to/output.patch .

Cheers,
Charles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 8 11:46:31 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.