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

Re: RA existence check?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-11-19 19:28:50 CET

cmpilato@collab.net writes:

> An RA-layer existence/node-kind check of some sort is necessary.
> You know, maybe something like:
>
> ra->get_node_kind (enum svn_node_kind *kind,
> svn_string_t *url,
> svn_revnum_t revision,
> apr_pool_t *pool);
>
> Where a node kind of svn_node_none would indicate non-existence.
> GregS, is there an efficient way to do this in RA_DAV, or are we
> talking about a custom REPORT/response couplet here?

It's worse than you think; there doesn't seem to be any way to to do
an existence ('stat') check in the public libsvn_fs API. I discovered
this a couple of weeks ago when fiddling with the svnadmin shell. My
hack was to do:

   if ((! svn_fs_is_dir) && (! svn_fs_is_file))

So maybe while you're at it, Mike, you can add this missing stat func
to svn_fs.h? :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:49 2006

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