I’ve set up a wordpress site using the information gleaned from http://codex.wordpress.org/Using_Subversion and other such wordpress codex sites.
I noticed whilst setting this up that the askimet source is copied in from an external repository.
Is this easy to do? What I want is to have a separate repository for my site which imports other repos such as the WordPress repo and any other repos I set up for custom plugins and all sorts.
In my repository I don’t want to have the full WordPress source, I would like to be able to link the WordPress repo into it, so that when I checkout the trunk of my repo it also copies all of the WordPress files.
So basically I’ll have a structure like this:
- Checkout/update all my custom files in my WordPress repo
- Checkout/update WordPress from WordPress SVN repo
- Checkout/update any custom plugin repos I’ve added.
Some of the directories will be shared. For instance in the WordPress repository’s root I want to be able to have a file in my Site Repository (wp-config.php).
Can this be done, and if so how would I go about doing it?
Thank you.
You can use the
svn:externalsproperty. Each line in this property’s value gives an URL and a directory; the SVN client will check out the repository at the URL into the named directory. Example:will produce a directory named wordpress in the current directory.