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

Re: svn commit: r1037738 - "Summary of updates"

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 30 Nov 2010 09:43:35 +0200

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)
Received on 2010-11-30 08:45:34 CET

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.