tags:

views:

718

answers:

1

I know there is a question about relative paths in subversion, but it doesn't work for me.

The error I get is:

svn propset svn:externals "openscada_da_server_common ../../openscada_da_server_common/schema" /tmp/atlantis-trunk/org.openscada.da.client.viewer/schema
svn: Ungültige Eigenschaft svn:externals 
    auf »/tmp/atlantis-trunk/org.openscada.da.client.viewer/schema«: 
    Ziel »../../openscada_da_server_common/schema« ist ein absoluter 
    Pfad oder enthält »..«

The equivalent english version should be:

"Invalid %s property on '%s': target '%s' is an absolute path or involves '..'"

My question is Why? According to the subversion docs it is a valid value http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html

+2  A: 

If you read a bit futher in the page of the manual you refer to you'll notice the following:

Also, the local subdirectory part of the definition cannot contain .. parent directory indicators (such as ../../skins/myskin).

Milen A. Radev
but that refers only to the local path! And further I get the same error using ../openscada_da_server_common/schema instead of ../../openscada_da_server_common/schema. I tried it because I wasn't sure about the paragraph either. An it would'n make sense for this feature if you could only reference things in your current path.
Mauli
Well, the second part of the new (as of v1.5) svn:externals definition IS the local path.
Milen A. Radev
Ok, you are right, I totally missed that the order of the arguments for the external definition changed. I should RTFM (with more open eyes)
Mauli