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

Re: Which family of path/dirent/uri/relpath functions to use for svn_lock_t->path?

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Thu, 18 Nov 2010 18:22:31 +0000

On Fri, 2010-11-12, Julian Foad wrote:
> Julian Foad wrote:
> > Peter Samuelson wrote:
> > > [Julian Foad]
> > > > Proposal for switching to a dedicated "fs path" API:
> > > >
> > > > Step 1: Introduce a new API for FS paths, as a thin layer that maps to
> > > > existing path APIs. It must assert that the fspath arguments and fspath
> > > > return values begin with '/'. Initially it should map directly to
> > > > svn_uri_*, so that it can be seen to be a direct replacement.
>
> I've just scanned through libsvn_fs*, libsvn_repos and libsvn_ra*, and
> the only svn_uri_* functions used here on non-URI paths appear to be:
>
> _join()
> _is_child()
> _basename()
>
> So that makes for a nice small start-up requirement for this new API.
> There are probably others used elsewhere in our codebase, of course.

I'll send a patch that adds these APIs, for review and comments.

- Julian
Received on 2010-11-18 19:23:14 CET

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.