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

Re: Relativeness of path arguments in libsvn_wc.

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Mon, 18 Aug 2008 09:50:25 -0400

Karl Fogel wrote:
> While reviewing r32292, I stumbled across a general question:
>
> Are '@a path' arguments to svn_wc functions absolute or relative? And
> if they're relative, are they relative to the cwd or to the
> access_baton that is (usually) passed along with the path?

Many of the path arguments in libsvn_wc predate the adm_access system
altogether. Most (if not all) of the time, they may be either absolute or
relative (to $CWD), depending on what the client library provided.
Sometimes they are duplicates of the paths in the associated access_batons
(and hence unnecessary).

Are they ever *relative to* the access_baton path? Perhaps sometimes --
this is the one case (of those listed) which deserves explicit documentation
in the docstrings.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on 2008-08-18 15:50:47 CEST

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.