SVN externals 1

Posted by Joel Jensen Thu, 23 Aug 2007 08:20:00 GMT

Here is how to set a directory to fetch as an svn:externals directory. I keep forgetting this. Now you can remember it too.

#make sure your editor variable is set, find the editor
# or which vi or whatever
which emacs  

#no spaces in EDITOR="
export EDITOR="/usr/bin/emacs"     

cd THE-DIRECTORY-YOU-WANT-EXTERNAL-TO-BE-IN

#propset the svn externals on the current directory, this pops up the editor
svn propedit svn:externals .     

# in emacs --- in emacs -- in emacs one directory per line.
apache-ant http://svn.repository.my/apache-ant/trunk/

# you saved the file, back in the shell
#download the repo as the new directory directory-name, in this case apache-ant
svn update

DONE

Comments

Leave a comment

  1. 4396508 over 2 years later:

    Thanks for referencing this. For code that is used so much, I would think I had this memorized. I find cross referencing my command lines making it even easier.

Comments