Using Subversion's "include" functionality– the svn:externals property

Key words and phrases: 
svn externals
Description & Info: 

DEPRECATED: Use Piston

In this case we're using svn externals to have a module in two places in a repository, but of course it works just as well for a truly external repository.

We are in our repository's directory for a site we are developing (in this case we happened to do this from where it's checked out on the server, but we could do the same from a local checkout). We want to include agaric's soon-to-be-famous utility function module, cleverly named agaric, in the site's modules directory.

cd /var/www/livingcon_test/sites/livingconversations.com/
sudo svn propedit svn:externals .

Look up the path to the agaric repository and put this line in the text editor provided...

modules/agaric	https://12.345.67.890/srv/svn/agaric/agaric-modules/agaric
Set new value for property 'svn:externals' on '.'

sudo svn commit -m "external agaric"
Sending        .

Committed revision 4522.
ben@server:/var/www/livingcon_test/sites/livingconversations.com$ sudo svn update

Fetching external item into 'modules/agaric'
A    modules/agaric/agaric.info
A    modules/agaric/agaric.module
Updated external to revision 4522.

Updated to revision 4522.

Enjoying things that just work. It's the Agaric way.

Reference:
http://svnbook.red-bean.com/en/1.0/ch07s03.html

by Benjamin Melançon
Posted on Thu, 2008-03-13 21:53
in
Post new comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <small> <pre> <strike> <sub> <sup>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
  ____    _        ___    _____   __  __ 
| __ ) | | / _ \ |___ | | \/ |
| _ \ | | | (_) | / / | |\/| |
| |_) | | |___ \__, | / / | | | |
|____/ |_____| /_/ /_/ |_| |_|
Enter the code depicted in ASCII art style.