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

Re: [PATCH] Make sparse-directories checkouts/updates work with old servers

From: Vlad Georgescu <vgeorgescu_at_gmail.com>
Date: 2007-05-08 22:23:19 CEST

Karl Fogel wrote:
> What if we use the 'start_empty' flag to set_path() and link_path()?
> Is that the inverse we want, that is, like saying to the server
> "assume all entries have been deleted, except for the ones I tell you
> I have"? Specifically, I mean:
>
> When the working directory has a depth other than svn_depth_infinity,
> *and* we're upgrading it to a deeper depth, then pass start_empty=true
> to reporter->set_path() / reporter->link_path(), and explicitly send
> any entries that are present in the working copy.

Yeah, that should work.

> If there's some way we can know that the server is 1.5 or higher, then
> we can just send working depth, and not bother with start_empty=true
> and with sending all the entries. But I don't know if enough of a
> feature exchange will have taken place by the time we're talking to
> the reporter.

I think trying to do different things depending on the server version
might be painful. Even if we knew whether the server has the required
version/capability when starting a report, I don't see a good way to get
that information from svn_ra_do_update and into svn_wc_crawl_revisions.

-- 
Vlad
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 8 22:23:34 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.