[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: Ivan Zhakov <chemodax_at_gmail.com>
Date: 2005-10-01 01:10:34 CEST

On 10/1/05, Philip Martin <philip@codematters.co.uk> wrote:
> Ivan Zhakov <chemodax@gmail.com> writes:
>
> > I am working to make svn_wc_revert2() loggy. For write log file I need
> > get relative path for dir-props files. I use function
> > svn_wc__prop_path(), but if I pass SVN_WC_THIS_DIR as path it returns
>
> SVN_WC_THIS_DIR is not a path.
>
> > prop path for file property instead for dir-props, but it works with
> > full directory path. Problem occurs when svn_wc__prop_path() calls
> > svn_wc_entry() and didn't find entry for SVN_WC_THIS_DIR. I see two
> > ways how this should be fixed:
> > 1. Teach svn_wc_entry to handle SVN_WC_THIS_DIR argument as edge case
> > and return entry for adm_access itself.
> > 2. Teach svn_wc__adm_retrieve_internal handle SVN_WC_THIS_DIR
> > situation and return associated adm_acces.
>
> Pass the directory path instead of SVN_WC_THIS_DIR.
In this case I will get full path for prop file. It's inconveniently
because for writing log I need relative path. Therefore I need remove
it by ugly logic similar to svn_wc__merge_props().

--
Ivan Zhakov
Received on Sat Oct 1 01:11:26 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.