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

Re: Question regarding svn_ra_do_update()

From: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: 2006-11-15 15:39:53 CET

On 11/15/06, Ph. Marek <philipp.marek@bmlv.gv.at> wrote:

> > Yes, that's one possibility. Another possibility is to call do_diff()
> > with textdeltas==FALSE.
> Does that textdeltas argument now mean "I don't need the text" or "If it has
> changes, send the full text"? From the documentation I'd expect the first -
> which doesn't help in my case.

The do_diff() routine causes two trees to be compared on the server:
the temporary tree that you build (via the reporter), and some
revision tree. Thus, if a file has changed, the response will
*always* mention the file. That's not something you can control!

The only thing the textdeltas argument does is either put the deltas
in the original response (just like the update response does), or not.
 In other words, if a file has changed, your open_file() editor
function will be called no matter what; the only thing you can
control is whether your apply_textdelta() function gets called or not.

So yes, you'll have to do what 'svn diff URL1 URL2' does: call
do_diff(textdeltas=false), and manually call svn_ra_get_file() each
time open_file() or add_file() is called.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 15 15:40:53 2006

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