You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Bert Huijben <be...@qqmail.nl> on 2011/10/10 18:39:45 UTC
RE: svn commit: r1181040 - in /subversion/branches/tree-read-api/subversion: include/svn_ra.h libsvn_ra/ra_loader.c
> -----Original Message-----
> From: julianfoad@apache.org [mailto:julianfoad@apache.org]
> Sent: maandag 10 oktober 2011 8:52
> To: commits@subversion.apache.org
> Subject: svn commit: r1181040 - in /subversion/branches/tree-read-
> api/subversion: include/svn_ra.h libsvn_ra/ra_loader.c
>
> Author: julianfoad
> Date: Mon Oct 10 15:52:23 2011
> New Revision: 1181040
>
> URL: http://svn.apache.org/viewvc?rev=1181040&view=rev
> Log:
> On the 'tree-read-api' branch: Implement svn_ra_get_symlink() and make
> svn_ra_check_path2() support symlinks.
>
> * subversion/include/svn_ra.h
> (svn_ra_get_symlink): New function.
>
> * subversion/libsvn_ra/ra_loader.c
> (svn_ra_get_symlink): New function.
> (svn_ra_check_path2): Use svn_ra_get_symlink() to detect symlinks.
If you intend to merge this code back to trunk eventually:
I think it would be better if svn_ra_check_path2 uses a single new/updated call to get the right information. This change makes svn_ra_check_path2() twice as slow as svn_ra_check_path() for the very common case where the target is a file. (And svn_ra_check_path is often just used to check if the path exists)
Bert
RE: svn commit: r1181040 - svn_ra_check_path2() in
branches/tree-read-api ...
Posted by Julian Foad <ju...@wandisco.com>.
Bert Huijben wrote:
> > Author: julianfoad
> > On the 'tree-read-api' branch: Implement svn_ra_get_symlink() and make
> > svn_ra_check_path2() support symlinks.
> >
> > * subversion/include/svn_ra.h
> > (svn_ra_get_symlink): New function.
> >
> > * subversion/libsvn_ra/ra_loader.c
> > (svn_ra_get_symlink): New function.
> > (svn_ra_check_path2): Use svn_ra_get_symlink() to detect symlinks.
>
> If you intend to merge this code back to trunk eventually:
>
> I think it would be better if svn_ra_check_path2 uses a single
> new/updated call to get the right information. This change makes
> svn_ra_check_path2() twice as slow as svn_ra_check_path() for the very
> common case where the target is a file.
Yes, good point. This is however part of a symlink-support feature
which was not the purpose of this branch, so I'll raise it (symlink
support, that is) separately.
- Julian
> (And svn_ra_check_path is often just used to check if the path
> exists)