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

Re: How to get prop path for SVN_WC_THIS_DIR?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-10-01 02:12:56 CEST

Ivan Zhakov <chemodax@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
Received on Sat Oct 1 02:13:35 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.