Q 69. How to get started with SVN
externals?
Sometimes it is useful to construct a working copy that is made
out of a number of different checkouts. For example, you may want different
files or subdirectories to come from different locations in a repository, or
perhaps from different repositories altogether. If you want every user to have
the same layout, you can define the svn:externals properties
to pull in the specified resource at the locations where they are needed.
1.external folders
2.external files
3.creating externals via drag and drop
Example:
I want to set a simple
svn:externals property in one of my project's directories, lets say 'plugins'
(talking about WordPress here). The outcome would be a directory called
'akismet' within 'plugins' that points to a remote svn url.
svn
propset svn:externals 'akismet http://plugins.svn.wordpress.org/akismet/trunk'
.
property
'svn:externals' set on '.'
Note that dot at the end of the command and
the quotes around the directory name and url.
Now commit via
svn
commit
and then
svn up
Fetching
external item into 'akismet'
A
akismet/akismet.gif
A
akismet/akismet.php
A
akismet/readme.txt
Updated
external to revision 127962.
Updated
to revision 16.
No comments:
Post a Comment