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

relative path "is not a working copy"

From: Mark Therieau <markt_at_covergence.com>
Date: 2005-06-07 22:17:43 CEST

When specifying a working copy relative path
of the form: "..\..\..\foo"
svn errors out with: "'..\foo' is not a working copy"

svn seems to be compressing "..\..\.." to ".."
Anyone know why?

Here's a reproduction recipe for windows...

svn --version
cd \tmp
mkdir test
cd test
svnadmin create repo
mkdir i
mkdir i\a
svn import -m "" i file:///c:/tmp/test/repo
svn checkout file:///c:/tmp/test/repo a
cd a
mkdir b
cd b
svn stat ..
svn stat ..\..\a
svn stat ..\..\..\tmp\a

And here's the output...

C:\tmp>repro

C:\tmp>svn --version
svn, version 1.2.0 (r14790)
   compiled May 22 2005, 22:40:26

Copyright (C) 2000-2005 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV)
protocol.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network
protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

C:\tmp>cd \tmp
C:\tmp>mkdir test
C:\tmp>cd test
C:\tmp\test>svnadmin create repo
C:\tmp\test>mkdir i
C:\tmp\test>mkdir i\a
C:\tmp\test>svn import -m "" i file:///c:/tmp/test/repo
Adding i\a
Committed revision 1.
C:\tmp\test>svn checkout file:///c:/tmp/test/repo a
A a\a
Checked out revision 1.
C:\tmp\test>cd a
C:\tmp\test\a>mkdir b
C:\tmp\test\a>cd b
C:\tmp\test\a\b>svn stat ..
? ..\b
C:\tmp\test\a\b>svn stat ..\..\a
? ..\..\a\b
C:\tmp\test\a\b>svn stat ..\..\..\tmp\a
svn: '..\tmp\a' is not a working copy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 7 23:48:14 2005

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.