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

Re: show diffs in a gui client, how to get a list of changed files?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-27 13:56:03 CEST

On May 27, 2005, at 3:55 AM, Martin Hauner wrote:

> Max Bowsher wrote:
>
>> Issue 2015 - it's already filed!
>>
>
> If someone outlines what has do be done in the code and where
> i would do some work on it.

Start with svn_client_diff(), and then follow the codepath for a URL-
URL diff. My understanding is that an RA request is sent to the
server which instructs it to compare two trees, and the result is an
editor-drive. The particular client-side editor that is driven is
written to drive *another* vtable known as 'diff_callbacks_t'. There
are currently two implementations of diff_callbacks_t: one which
prints diffs to the screen ('svn diff URL1 URL2') and one which
merges diffs into working-files ('svn merge URL1 URL2'). The goal
here, I believe, is to write a third implementation of
diff_callbacks_t, one which uses our notification system to merely
print status codes.

It's possible that you could start by simply copying the 'merge'
implementation of diff_callbacks_t and then hack on it; it already
outputs status codes, you'd just have to make it not change any
working-copy data.

(Hm, maybe the issue should link to this mail...?)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 27 13:58:12 2005

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.