1 Oct 2005 01:04
Re: How to get prop path for SVN_WC_THIS_DIR?
Ivan Zhakov <chemodax <at> gmail.com>
2005-09-30 23:04:32 GMT
2005-09-30 23:04:32 GMT
On 10/1/05, Daniel Rall <dlr <at> finemaltcoding.com> wrote: > On Fri, 30 Sep 2005, Ivan Zhakov wrote: > > > Hi! > > 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 > > 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. > > > > Ideas? > > Would getting the path from svn_wc_adm_access_path(adm_access) work to > simply avoid the issue? Yes, in this case svn_wc__prop_path returns valid path, but it will be full path therefore I need implement ugly logic to remove svn_wc_adm_access_path(adm_access) prefix from it. As it done in svn_wc__merge_props(). -- Ivan Zhakov
RSS Feed