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

Re: finding the root of a repository url

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-07-05 15:39:27 CEST

Greg Hudson <ghudson@MIT.EDU> writes:

> Ben Collins-Sussman wrote:
> > Note -- I don't think we'll need to add a whole new RA->get_root()
> > API, just like we added RA->get_uuid(). The only reason
> > RA->get_uuid() exists is so that wc-less operations (like 'svn cp
> > URL URL') can decide if you're working against the same repository
> > or not. But I can't think of a reason a wc-less operation would need
> > to know the repos-root.
>
> How does the live prop get from the ra layer to the wc entries file if
> not through the RA interface?

The same way all the other 'live' props get into your entries files:
the server sends them to the client as 'svn:wc:entry:*' properties.
libsvn_wc filters for that prefix. Examples include {last changed
author, last changed rev, last changed date, repos uuid}.

Note that of that list, only the uuid property has its own
RA->get_uuid() function. I guess technically, it's not *really*
necessary. The function is implemented by querying the server for the
UUID property on the ra-session's URL. I suppose a function depending
on RA->get_uuid() could call RA->get_dir() instead to fetch props instead.

> Consider a wc-less GUI application which navigates a remote
> repository and uses get_log.

Hm, well, maybe that *is* a valid use case for RA->get_repos_root().

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 5 15:41:34 2003

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.