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

Re: Strange problem with multiple ".." in path

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-06-28 15:38:49 CEST

On 6/28/07, Sean Ellis <Sean.Ellis@arm.com> wrote:
> 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.

Yes, I've seen it, didn't believe it when I saw it posted on SVNForum
several months ago but I tried it myself and confirmed. Only tested
with Windows, no Cygwin.

---------------------------------------------------------------------
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:39:00 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.