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

Strange problem with multiple ".." in path

From: Sean Ellis <Sean.Ellis_at_arm.com>
Date: 2007-06-28 15:26:38 CEST

All,

I am seeing a problem with SVN 1.4.2 (Windows) when there are multiple
consecutive ".." entries in the path. I have searched the mailing list
archives and the web, but with no useful results, so I am posting here
in case anyone else has seen it.

Paths starting with ".." and "..\.." are interpreted correctly.
Paths starting with "..\..\.." are interpreted as starting with ".."
instead
Paths starting with "..\..\..\.." are interpreted as starting with
"..\.." instead
Paths starting with "..\..\..\..\.." are interpreted as starting with
".." instead
Paths starting with "..\..\..\..\..\.." are interpreted as starting with
"..\.." instead
...and so on, alternating between .. and ..\.. depending on the number
of ..s in the path.

Here are some examples that illustrate the problem. Assume we are deep
enough in a file hierarchy that all the following are still within a
valid working copy, and that there is a folder called "source/common"
under the root.

Cd <working copy>
Svn status source
(output, as expected)

Svn status nonexistent_dir
(no output, as expected)

Cd <first level subdirectory>
Svn status ..\source
(output, as expected)

Cd <second level>
Svn status ..\..\source
(output, as expected)

Cd <third level>
Svn status ..\..\..\source
(strange, no output. It is as if ..\..\..\source does not exist)

Svn status ..\..\..\source\common
svn: warning: '..\source\common' is not a working copy
(very strange. I asked for the status 3 levels up, not 1)

The same behaviour can be seen in the Windows shell and in the Cygwin
Bash shell.

Anyone else seen this? Is this a real defect? Any information would be
gratefully appreciated.

-- 
Sean Ellis
-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 28 15:26:51 2007

This is an archived mail posted to the Subversion Users mailing list.