Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relative Path in Subversion external configuration

Tags:

svn

Is there any way to use Relative path when configuring subversion externals.

For example

 Trunk       - directoryA       - directoryB       - projectA {external DirectoryB} 

For configuring ProjectA we have to configure full path in the external property which is causing problems or forcing us to do change the properties when we do branches.

Any way to automate the branching process or fix with absolute path will be useful

like image 813
sundar venugopal Avatar asked Dec 11 '08 13:12

sundar venugopal


People also ask

How do you make a path relative?

Relative paths make use of two special symbols, a dot (.) and a double-dot (..), which translate into the current directory and the parent directory. Double dots are used for moving up in the hierarchy. A single dot represents the current directory itself.

What is svn URL?

As illustrated throughout this book, Subversion uses URLs to identify versioned resources in Subversion repositories. For the most part, these URLs use the standard syntax, allowing for server names and port numbers to be specified as part of the URL: $ svn checkout http://svn.example.com:9834/repos …

What does svn update do?

svn update brings changes from the repository into your working copy. If no revision is given, it brings your working copy up-to-date with the HEAD revision. Otherwise, it synchronizes the working copy to the revision given by the --revision option.


1 Answers

Subversion 1.5 clients support relative urls:

See the Subversion 1.5 release notes and the subversion manual for more details

Some examples: (Note that the comment syntax is not supported)

# Repository root relative ^/projectX/trunk/src/ projectX  # Relative to current directory ../../dependency/X X  # Server root relative /svn/repos/projectX/trunk/src projectX  # Schema relative //svn.collab.net/repos/svn/trunk svn 
like image 71
Bert Huijben Avatar answered Sep 22 '22 01:09

Bert Huijben