User login

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

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

Resolution

Searched words: 
svn externals

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.