[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: Ph. Marek <philipp.marek_at_bmlv.gv.at>
Date: 2006-11-15 07:35:50 CET

Hello Ben!

On Tuesday 14 November 2006 16:09, Ben Collins-Sussman wrote:
> On 11/14/06, Ph. Marek <philipp.marek@bmlv.gv.at> wrote:
> > That's what I asked before - do I have to do a remote-status and then get
> > all needed files?
> 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_update() function was specifically designed with libsvn_wc in
> mind (i.e. that text-bases are available); I don't think we're going
> to add a 'textdeltas' argument to it as you suggest, because we
> already have do_diff() and do_status() to accomplish what you want.
> Here's a way of thinking about these three functions, that will
> hopefully clarify their design to you:
Thank you, that I've already figured out.

> > I just assumed (yes, I know) that since subversion without text-base is
> > work in progress that someone had a bit of brainstorming how to implement
> > it.
> There's no work in progress. It was proposed over a year ago as a
> Summer of Code project, but the work never happened. Nobody's working
> on it, and I don't even think anyone has started typing up a design
> document yet.
So you'll profit from my work ...

> Can I ask what you're doing?
> Most people use svn_ra.h to create
> repository browsers and so on. Are you creating a whole new version
> control system?
No, I'm not doing so much.
> Some new working copy library?
That would match better.
> If so, you might
> want to look at svk. svk implemented their own working copy called
> 'xd'.
I know. But that's written in perl and has some start-up penalty (I read about
pperl, but that's not enough).

The project I'm asking that for is fsvs (fsvs.tigris.org) - more or less an
expansion of the meta-data branch in subversion.
A lot has already been done ... Just having a problem on mixed-use working

What bugs me is that the svn_ra_do_status()/svn_ra_get_file() solution has
many round-trips (for each file to be fetched), and even if the local files
didn't change fetches the full-text.

So I probably have to use svn_ra_do_status(), craft a report for
svn_ra_do_update() (fetch non-changed files), and get changed entries one by
one with svn_ra_get_file() ....
All just because svn_ra_do_update() doesn't allow for saying "please send me
the full-text for this, this and this file, if they changed"!
Could please someone give such a flag to set_path() or allow a missing_path()
or some such?



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

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