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

Re: bug: svn info [great [great [great]] grand] parent directory paths

From: D.J. Heap <dj_at_shadyvale.net>
Date: 2005-06-25 16:40:40 CEST

Matthew Baker wrote:
>>>svn info doesn't seem to behave properly when multiple ../ are used.
>>>It also behaves differently on windows and unix (Solaris)
>>
[snip]
>
> Seeing the behavior:
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..
> Path: ..
> URL: svn://repos/Geneos/Dev/version/Development/Source/EMF2
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ../..
> Path: ..\..
> URL: svn://repos/Geneos/Dev/version/Development/Source
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ../../..
> Path: ..
> URL: svn://repos/Geneos/Dev/version/Development/Source/EMF2
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ../../../..
> Path: ..\..
> URL: svn://repos/Geneos/Dev/version/Development/Source

This appears to be an APR problem on Windows. In libsvn_subr\opt.c on line
608 we call apr_filepath_merge with apr_target as "..\..\.." (or something
similar):

           apr_err = apr_filepath_merge (&truenamed_target, "", apr_target,
                                         APR_FILEPATH_TRUENAME, pool);

and get back "../" in truenamed_target. Unfortunately, I don't follow the
processing going on in APR...can a Win32 APR expert (Brane?) look at it?

DJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 25 16:41:29 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.