You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Helge Jensen <He...@cryptomathic.com> on 2003/07/01 08:47:30 UTC

svn copy . [URL] fails: cannot copy path '' into its own child 'http://...'

Doing a "svn copy . [URL]" yields the error:

C:\source\pct_project>svn copy -m '' . http://svn.cryptomathic.com/sandbox/hej
svn: Trying to use an unsupported feature
svn: cannot copy path '' into its own child 'http://svn.cryptomathic.com/sandbox/hej'

But "." is not a child of 'http://svn.cryptomathic.com/sandbox/hej':

C:\source\pct_project>svn info .
Path:
Url: http://svn.cryptomathic.com/modules/pct/project
Repository UUID: 241713be-12c1-0310-975d-c1334f4dff28
Revision: 33
Node Kind: directory
Schedule: normal
Last Changed Rev: 33
Last Changed Date: 2003-06-30 18:20:56 +0200 (Mon, 30 Jun 2003)
Properties Last Updated: 2003-06-30 18:20:08 +0200 (Mon, 30 Jun 2003)

I don't really see the inherent problem in the operation.
Is there a problem here, that i'm just not seeing? Or is it simply, that the
parsing of the path "." generates the empty path? which seems to be what is printed.
in the error message.

Unfortunatly, the workaround:

   cd ..; svn copy -m '' pct_project http://svn.cryptomathic.com/sandbox/hej

Is not really an option for me, since:

   1. c:\source is not a corking copy
   2. the svn copy operation is run from a script, which generates releases (and tags them)

My current workaround is to "svn copy" from the repository, since a part of the script
is to check that no files are modified relative to the checked out revision
(effectively: svn status returns the empty output). So I can copy the repository instead,
using the output from "svn info" to get the revision of ".":

... [from output of svn info] ...
Revision: 33
...

C:\source\pct_project>svn copy -r 33 -m "" http://svn.cryptomathic.com/modules/pct/project http://svn.cryptomathic.com/sandbox/hej

Committed revision 34.

BTW:
C:\source\pct_project>svn --version
svn, version 0.24.2 (r6284)
    compiled Jun 19 2003, 05:44:59

-- 
Helge


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn copy . [URL] fails: cannot copy path '' into its own child 'http://...'

Posted by Philip Martin <ph...@codematters.co.uk>.
Helge Jensen <He...@cryptomathic.com> writes:

> C:\source\pct_project>svn copy -m '' . http://svn.cryptomathic.com/sandbox/hej
> svn: Trying to use an unsupported feature
> svn: cannot copy path '' into its own child 'http://svn.cryptomathic.com/sandbox/hej'
>
> But "." is not a child of 'http://svn.cryptomathic.com/sandbox/hej':

That was fixed in r6348.

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org