<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jean-Michel Feurprier &#187; architecture</title>
	<atom:link href="http://blog.jmfeurprier.com/tag/architecture/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jmfeurprier.com</link>
	<description>LAMP Web Architect</description>
	<lastBuildDate>Sat, 13 Feb 2010 00:16:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Simple introduction to SVN externals</title>
		<link>http://blog.jmfeurprier.com/2009/12/10/simple-introduction-to-svn-externals/</link>
		<comments>http://blog.jmfeurprier.com/2009/12/10/simple-introduction-to-svn-externals/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 20:36:34 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[externals]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://blog.jmfeurprier.com/2009/12/10/simple-introduction-to-svn-externals/</guid>
		<description><![CDATA[This is a quick and basic introduction to SVN externals, explaining what they are and how they work with a simple real-life example. <a href="http://blog.jmfeurprier.com/2009/12/10/simple-introduction-to-svn-externals/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Not so long ago, we&#8217;ve had to include a third-party library into a new project (using SVN). Our first idea (the one which did not imply thinking) was to SVN-export library files from the remote repository, paste them into the project, SVN-add them, then SVN-commit files.</p>
<p>Having to keep these library files up-to-date with official patches and improvements sounded like a full-time job.<br />
This solution sucked.<br />
A lot.<br />
<span id="more-40"></span><br />
We are programmers, and we really hate repetitive tasks because <a title="Why Good Programmers Are Lazy and Dumb" href="http://blogoscoped.com/archive/2005-08-24-n14.html">we are lazy</a>. We spend most of our time building applications which automate human tasks, why not take care of this one?</p>
<p>Good news, a quick googling revealed our issue was a common one, and there was already a ready-to-use solution: <a title="SVN externals definitions" href="http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html">SVN externals</a>.</p>
<p><strong>What are SVN externals?</strong></p>
<p>SVN externals allow to include (nest) a remote SVN repository into another SVN repository. They are set through <a title="SVN properties" href="http://svnbook.red-bean.com/en/1.5/svn.advanced.props.html">SVN properties</a>.</p>
<p><strong>How to use them?</strong></p>
<p>If you&#8217;re a command-line geek, type:</p>
<p><code>svn propset svn:externals "http://svn.3rdapp.com/super-library/ library" .</code></p>
<p>This will create a SVN property at the current location (don&#8217;t miss the final dot &#8220;.&#8221; at the end) named &#8220;svn:externals&#8221;, and its value will be &#8220;http://svn.3rdapp.com/super-library/&nbsp;library&#8221;. Which means: insert a directory named &#8220;library&#8221;, which will retrieve its content from a distant SVN repository located at &#8220;http://svn.3rdapp.com/super-library/&#8221;. The next time you run a SVN-update, the third-party files will be added to your SVN project.</p>
<p>You can do the same with <a title="TortoiseSVN, Windows Shell Extension for Subversion" href="http://tortoisesvn.tigris.org/">TortoiseSVN</a> Windows Shell Extension for Subversion: right-click when browsing your SVN project with the Windows file explorer, highlight &#8220;TortoiseSVN&#8221;, then click &#8220;Properties&#8221;:</p>
<p><img class="alignnone size-full wp-image-164" src="http://blog.jmfeurprier.com/wp-content/uploads/2009/12/svn-externals-1.png" alt="SVN externals: TortoiseSVN, step 1" width="228" height="155" /></p>
<p>Now, click &#8220;New&#8230;&#8221;, type or pick &#8220;svn:externals&#8221; in the &#8220;Property name:&#8221; drop-down, then type &#8220;http://svn.3rdapp.com/super-library/ library&#8221; in the &#8220;Property value:&#8221; textarea. Click &#8220;OK&#8221; twice:</p>
<p><img class="alignnone size-full wp-image-165" src="http://blog.jmfeurprier.com/wp-content/uploads/2009/12/svn-externals-2.png" alt="SVN externals: TortoiseSVN, step 2" width="574" height="302" /></p>
<p>Now, every time a new version of the third-party application will be released, it will be reflected when you SVN-update your local copy of your project.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jmfeurprier.com/2009/12/10/simple-introduction-to-svn-externals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

