<?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>beer planet &#187; externals</title>
	<atom:link href="http://beerpla.net/tag/externals/feed/" rel="self" type="application/rss+xml" />
	<link>http://beerpla.net</link>
	<description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description>
	<lastBuildDate>Tue, 27 Jul 2010 04:25:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/>
		<item>
		<title>How To Properly Set SVN svn:externals Property In SVN Command Line</title>
		<link>http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/</link>
		<comments>http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 02:01:26 +0000</pubDate>
		<dc:creator>Artem Russakovskii</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[externals]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[propget]]></category>
		<category><![CDATA[propset]]></category>
		<category><![CDATA[set]]></category>
		<category><![CDATA[svn:externals]]></category>
		<guid isPermaLink="false">http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/</guid>
		<description><![CDATA[<h2>Introduction</h2>
<p>Every time I have to deal with <a href="http://svnbook.red-bean.com/en/1.0/ch07s03.html" rel="nofollow">svn:externals</a> in SVN, I forget the command line syntax. Every single damn time. Normally, I use SVN GUI clients, such as <a href="http://www.smartsvn.com/" rel="nofollow">SmartSVN</a>, which make it very simple to add an svn:externals property. But for command line, it always takes looking at 25 different sites on google, which are all incredibly unhelpful for this question for some reason. Trying &#34;svn help propset&#34; on the command line was bloated and equally useless.</p>
<p>So this time I needed to write it down and make sure everyone who needed help with svn:externals...<div class=clear></div> <a href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" class="read_more"><div class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Every time I have to deal with <a href="http://svnbook.red-bean.com/en/1.0/ch07s03.html" rel="nofollow">svn:externals</a> in SVN, I forget the command line syntax. Every single damn time. Normally, I use SVN GUI clients, such as <a href="http://www.smartsvn.com/" rel="nofollow">SmartSVN</a>, which make it very simple to add an svn:externals property. But for command line, it always takes looking at 25 different sites on google, which are all incredibly unhelpful for this question for some reason. Trying &quot;svn help propset&quot; on the command line was bloated and equally useless.</p>
<p>So this time I needed to write it down and make sure everyone who needed help with svn:externals would find exactly what they need here. I hope this page will soon come up on top of all the unhelpful results on google for &quot;propset svn:externals&quot; and other related queries.</p>
<h2>The Problem</h2>
<p>I want to set a simple svn:externals property in one of my project&#039;s directories, lets say &#039;plugins&#039; (talking about WordPress here). The outcome would be a directory called &#039;akismet&#039; within &#039;plugins&#039; that points to a remote svn url.</p>
<p>Various combinations of trying to do it produced pathetic results, like</p>
<div class="wp_syntax"><div class="code"><pre>svn propset svn:externals akismet http://plugins.svn.wordpress.org/akismet/trunk
svn: Setting property on non-local target 'http://plugins.svn.wordpress.org/akismet/trunk' needs a base revision</pre></div></div>
<div class="wp_syntax"><div class="code"><pre>svn propset svn:externals . akismet http://plugins.svn.wordpress.org/akismet/trunk
svn: Error parsing svn:externals property on 'akismet': '.'</pre></div></div>
<div class="wp_syntax"><div class="code"><pre>svn propset svn:externals akismet http://plugins.svn.wordpress.org/akismet/trunk akismet
svn: Setting property on non-local target 'http://plugins.svn.wordpress.org/akismet/trunk' needs a base revision</pre></div></div>
<h2>The Solution</h2>
<p>Finally, thanks to <a href="http://www.nabble.com/svn:externals-example-td16552909.html" rel="nofollow">this post</a>, I found the right command:</p>
<div class="wp_syntax"><div class="code"><pre>svn propset svn:externals 'akismet http://plugins.svn.wordpress.org/akismet/trunk' .
property 'svn:externals' set on '.'</pre></div></div>
<p>Note that dot at the end of the command and the quotes around the directory name and url.</p>
<p>Now commit via</p>
<div class="wp_syntax"><div class="code"><pre>svn commit</pre></div></div>
<p>and then</p>
<div class="wp_syntax"><div class="code"><pre>svn up
Fetching external item into 'akismet'
A    akismet/akismet.gif
A    akismet/akismet.php
A    akismet/readme.txt
Updated external to revision 127962.
&nbsp;
Updated to revision 16.</pre></div></div>
<p>There, was it that hard, forum gurus and blog fiends?</p>
<p><strong>Edit</strong>: in order to set multiple directory/url pairs in a single svn:externals property, you should put the individual dir/url pairs into a file (let&#039;s call it &#039;svn.externals&#039;), like so</p>
<div class="wp_syntax"><div class="code"><pre>akismet http://svn.wp-plugins.org/akismet/trunk
all-in-one-seo-pack http://svn.wp-plugins.org/all-in-one-seo-pack/trunk</pre></div></div>
<p>and then apply the property using</p>
<div class="wp_syntax"><div class="code"><pre>svn propset svn:externals -F svn.externals .</pre></div></div>
<p>You should also just check in &#039;svn.externals&#039; to easily keep track of it.</p>
<p.One thing I haven't figured out yet is how to perform the same multi-operation without using a file. How does one do it on a single command line?</p>
<div class="shr-bookmarks shr-bookmarks-expand">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line+-+http://bit.ly/bpA8jU&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;t=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-hackernews">
			<a href="http://news.ycombinator.com/submitlink?u=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;t=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/&amp;title=How+To+Properly+Set+SVN+svn%3Aexternals+Property+In+SVN+Command+Line" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22How%20To%20Properly%20Set%20SVN%20svn%3Aexternals%20Property%20In%20SVN%20Command%20Line%22&amp;body=Link: http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A Introduction%0D%0AEvery%20time%20I%20have%20to%20deal%20with%20svn%3Aexternals%20in%20SVN%2C%20I%20forget%20the%20command%20line%20syntax.%20Every%20single%20damn%20time.%20Normally%2C%20I%20use%20SVN%20GUI%20clients%2C%20such%20as%20SmartSVN%2C%20which%20make%20it%20very%20simple%20to%20add%20an%20svn%3Aexternals%20property.%20But%20for%20command%20line%2C%20it%20always%20takes%20looking%20at%2025%20different%20si" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
Similar Posts:<ul><li><a href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li>
<li><a href="http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/" rel="bookmark" title="June 16, 2008">How To SVN Update All Your WordPress Plugins In One Go</a></li>
<li><a href="http://beerpla.net/2008/03/29/beer-planet-upgraded-to-wordpress-25/" rel="bookmark" title="March 29, 2008">Beer Planet Upgraded To WordPress 2.5</a></li>
<li><a href="http://beerpla.net/2010/03/06/how-to-show-hiddeninvisible-files-in-total-commander-both-locally-and-on-an-ftp-server/" rel="bookmark" title="March 6, 2010">How To Show Hidden/Invisible Files In Total Commander, Both Locally And On An FTP Server</a></li>
<li><a href="http://beerpla.net/2006/07/15/converting-from-cvs-to-svn-developers-notes-and-why-svn-is-better/" rel="bookmark" title="July 15, 2006">Converting from CVS to SVN: Developer&#039;s Notes And Why SVN Is Better</a></li>
</ul><!-- Similar Posts took 10.219 ms --><p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
