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

Re: SVN diff happens on server side or client side?

From: Charles Acknin <charlesacknin_at_gmail.com>
Date: 2007-07-18 11:45:17 CEST

On 7/18/07, Shawn Jin <shawnemails@gmail.com> wrote:
> Hi all,
>
> A little confused here: where does "diff" happen, server side or client
> side? Since subversion allows user to use external diff, it appears to be
> using client-side diff. But if diff from two revisions in the repository it
> seems to be certain to be happening server-side.
>
> What happens when using external diff on two revisions of a file in the
> repository?

External diff, assuming you're talking about svn diff --diff-cmd, is
taking place client-side. That is, the server doesn't know you're
using an external tool to output diff on your client. However, when
comparing two revisions of a file in a repository, the client talks to
the server using one of the RA protocol Subversion supports.

Here's how it works:
  - whatever external diff tool you want Subversion to use, 'svn diff
-rX:Y URL' requests the server for diff information.
 - when the client receives this information, it then looks at how you
expect Subversion to display diff. This is when your external diff
tool is called. If no external tool was specified, Subversion will
use its internal diff library.

Cheers,
Charles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 18 11:44:26 2007

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