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
Comments
Post new comment