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

'svn info URL'

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-02-25 01:30:35 CET

On Feb 24, 2005, at 6:13 PM, sussman@tigris.org wrote:

> Author: sussman
> Date: Thu Feb 24 18:13:51 2005
> New Revision: 13144
>
> Log:
> Make 'svn info' work on URLs as well as working-copy items.
>
>

So we have a problem here.

My main strategy for implementing 'svn info URL' is to run
svn_ra_get_dir(), then push the returned svn_dirent_t information back
at the client. For the most part, this is working fine.

But there's a shortcoming in svn_ra_get_dir(): it doesn't return a '.'
entry. This means we're fetching parent entries not just for a file,
but for every directory as well! This has two yucky consequences:

    1. 'svn info repos_root_URL' fails. There's no way to get the
svn_dirent_t of '/'!

    2. It's inefficient. A directory may have a whole lot of children.

So I'm wondering... should we add a new RA API to fetch a single
svn_dirent_t?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 25 01:31:43 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.