Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relative path in Subversion externals definition doesn't work for me!

Tags:

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

like image 468
Mauli Avatar asked May 15 '09 15:05

Mauli


People also ask

How do svn externals work?

When you commit a change to the svn:externals property, Subversion will synchronize the checked-out items against the changed externals definition when you next run svn update . The same thing will happen when others update their working copies and receive your changes to the externals definition.


2 Answers

Swap the locations of your 2 parameters.

like image 114
Robert Avatar answered Oct 04 '22 15:10

Robert


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

For clarity, with relative paths, the correct order of the arguments for svn:externals is:

^/../otherRepo/trunk/path/to/dir     dir
like image 36
Milen A. Radev Avatar answered Oct 04 '22 16:10

Milen A. Radev