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

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

From: Helge Jensen <Helge.Jensen_at_cryptomathic.com>
Date: 2003-07-01 10:47:30 CEST

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 .
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.

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

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 1 17:49:01 2003

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

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