You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@codematters.co.uk> on 2005/10/01 00:12:56 UTC
Re: How to get prop path for SVN_WC_THIS_DIR?
Ivan Zhakov <ch...@gmail.com> writes:
> Also I don't understand why passing SVN_WC_ENTRY_THIS_DIR to
> svn_wc_entry() is wrong?
SVN_WC_ENTRY_THIS_DIR is not a path but is a name placeholder. The
essential difference is that paths can have multiple components, such
as "foo/bar", and can be absolute, such as "/zig" while names are
always single components relative to the parent directory. The path
"" is a valid path, it's the canonical form of ".".
It so happens that SVN_WC_ENTRY_THIS_DIR is equal to "" (athough in
the past it used to be "svn:this_dir") but it's just a placeholder to
indicate the directory's own entry among the entries for a given
directory. Every access baton has an SVN_WC_ENTRY_THIS_DIR entry.
svn_wc_entry takes a path. If the caller passes the path "" the
function should return the access baton that corresponds to path "".
There can be at most one access baton in a set that has a path of "".
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org