"Matthew Baker" <mbaker@itrsgroup.com> writes:
> I've had a search and I can't find an issue dealing with this. If it's
> been mentioned already then I'm sorry...
>
> svn info doesn't seem to behave properly when multiple ../ are used. It
> also behaves differently on windows and unix (Solaris)
>
> Examples follow:
>
> I have omitted everything but the path svn info reports to save space.
> If you need any more info or can't reproduce it then let me know.
I don't have a Windows box to test those suspicious-looking Windows
problems on. As for Unix, the problem seems to be just a very poor
(outright inaccurate) error message:
$ echo "Running experiment in:"; pwd; echo ""; \
for path in \
. \
../.. \
.. \
../../.. \
../../.. \
../../../ \
../../../../ \
../../../../../ \
../../../../../.. \
../../../../../../.. \
../../../../../../../..; \
do \
echo "Trying '${path}'"; \
svn info ${path} | grep "Path: "; \
echo ""; \
done
...gives this output:
Running experiment in:
/home/kfogel/src/subversion/subversion/bindings/swig/perl
Trying '.'
Path: .
Trying '../..'
Path: ../..
Trying '..'
Path: ..
Trying '../../..'
Path: ../../..
Trying '../../..'
Path: ../../..
Trying '../../../'
Path: ../../..
Trying '../../../../'
Path: ../../../..
Trying '../../../../../'
subversion/libsvn_wc/lock.c:277: (apr_err=155022)
svn: Path '../../../../..' ends in '..', \
which is unsupported for this operation
Trying '../../../../../..'
Path: ../../../../../..
Trying '../../../../../../..'
subversion/libsvn_wc/lock.c:277: (apr_err=155022)
svn: Path '../../../../../../..' ends in '..', \
which is unsupported for this operation
Trying '../../../../../../../..'
subversion/libsvn_wc/lock.c:277: (apr_err=155022)
svn: Path '../../../../../../../..' ends in '..', \
which is unsupported for this operation
Those errors are all for directories that are not under version
control, or at any rate are disjoint from the current directory.
Notice that there's an intermediate one ("../../../../../..") that
succeeds, even though the ones around it error. That's because
"/home/kfogel" is indeed under version control :-)
I'm not sure what to do about those Windows problems, except hope that
a Windows person has time/energy to debug. The Unix problems could
get filed as an error-message issue; would you like to do that? Just
point to this thread if you do.
Thanks,
-Karl
> ------------------------------
> Windows 2000 svn, version 1.2.0 (r14790) using installer
> ------------------------------
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info .
> Path: .
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ../..
> Path: ..\..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..
> Path: ..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ../../..
> Path: ..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..\..\..
> Path: ..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..\..\..\
> Path: ..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..\..\..\..\
> Path: ..\..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..\..\..\..\..\
> Path: ..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..\..\..\..\..\..
> Path: ..\..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info ..\..\..\..\..\..\..
> Path: ..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn info
> ..\..\..\..\..\..\..\..
> Path: ..\..
>
> C:\Geneos\Development\Source\EMF2\netprobe>svn --version
> svn, version 1.2.0 (r14790)
> compiled May 22 2005, 22:40:26
>
>
> ------------------------------
> Solaris 2.6 svn, version 1.2.0 (r14790) built from 1.2.0 tarball
> ------------------------------
>
> itrsultra10% svn info .
> Path: .
>
> itrsultra10% svn info ..
> Path: ..
>
> itrsultra10% svn info ../..
> Path: ../..
>
> itrsultra10% svn info ../../../
> svn: Path '../../..' ends in '..', which is unsupported for this
> operation
> itrsultra10% svn info ../../..
> svn: Path '../../..' ends in '..', which is unsupported for this
> operation
> itrsultra10% svn info ../../../../
> svn: Path '../../../..' ends in '..', which is unsupported for this
> operation
> itrsultra10% svn info ../../../../../
> svn: Path '../../../../..' ends in '..', which is unsupported for this
> operation
> itrsultra10% svn --version
> svn, version 1.2.0 (r14790)
> compiled May 26 2005, 15:57:04
>
>
>
>
> Matt Baker
>
> ITRS Group PLC
> 231 Shoreditch High Street
> London
> E1 6PJ
> United Kingdom
>
> Phone: +44 (0) 20 7377 5156
> Fax: +44 (0) 20 7375 1096
> Web: http://www.itrsgroup.com/
>
> Internet communications are not secure and therefore the ITRS Group does
> not accept legal responsibility for the contents of this message. Any
> views or opinions presented are solely those of the author and do not
> necessarily represent those of the ITRS Group unless otherwise
> specifically stated.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 22 23:36:54 2005