C. Michael Pilato wrote on Mon, Nov 29, 2010 at 14:17:13 -0500: > On 11/26/2010 01:01 AM, Daniel Shahaf wrote: > > Thanks for this :-). It works as expected when the current directory is > > entered by its name, but not when it's entered through a symlink: > > > > [[[ > > % cd /tmp > > > > % ln -s wc1 wcalias > > > > % cd wc1 > > > > % $svn up /tmp/wc1/trunk/iota > > Updating 'trunk/iota' ... > > > > % cd /tmp/wcalias > > > > % $svn up /tmp/wc1/trunk/iota11D > > Updating 'trunk/iota' ... > > > > % $svn up /tmp/wcalias/trunk/iota > > Updating '/tmp/wcalias/trunk/iota' ... > > ]]] > > > > > > Ideally, the last output would have used the relative path 'trunk/iota', > > too. However, I'm not sure how to easily solve that --- is it as easy > > as calling some "resolve symlinks" function on the absolute-cwd string? > > Do we have a "resolve symlinks" function?
I don't see anything in APR or in svn_io.h. Can we use realpath(3)? Or should we roll our own? Daniel (I rolled a prototype here)