<?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>unitstep.net &#187; svn</title>
	<atom:link href="http://unitstep.net/blog/category/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitstep.net</link>
	<description>the home of peter chng</description>
	<lastBuildDate>Mon, 06 Feb 2012 01:23:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Problems updating to WordPress 2.8 using SVN</title>
		<link>http://unitstep.net/blog/2009/06/15/problems-updating-to-wordpress-2-8-using-svn/</link>
		<comments>http://unitstep.net/blog/2009/06/15/problems-updating-to-wordpress-2-8-using-svn/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 03:14:30 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
				<category><![CDATA[fix]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://unitstep.net/?p=938</guid>
		<description><![CDATA[If you&#8217;re like me, you run your WordPress installation off of a SVN checkout, making it far easier to stay up to date with new versions. In fact, using version control checkouts is an excellent way to maintain web applications running on production servers, especially if they don&#8217;t require compilation. However, if you recently tried [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me, you run your <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">WordPress installation off of a SVN checkout</a>, making it far easier to stay up to date with new versions.  In fact, using version control checkouts is an excellent way to maintain web applications running on production servers, especially if they don&#8217;t require compilation.</p>
<p>However, if you recently tried to upgrade to the latest version using the <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion#Updating_to_a_New_Stable_Version">instructions at the WordPress Codex</a>, you likely ran into a problem with an error mesage like this:</p>
<pre><code>$ svn sw http://core.svn.wordpress.org/tags/2.8/ .
svn: 'http://core.svn.wordpress.org/tags/2.8/'
is not the same repository as
'http://svn.automattic.com'</code></pre>
<p>This is because sometime between the release of 2.7.1 and 2.8, the <acronym class="uttInitialism" title="Uniform Resource Locator">URL</acronym> of the WordPress SVN repository changed from <strong>http://svn.automattic.com/wordpress/</strong> to <strong>http://core.svn.wordpress.org/</strong>.  </p>
<h2>The fix</h2>
<p>To properly update WordPress after this change in the SVN repository location, we need to first run the <a href="http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.switch.html"><em>svn sw &#8211;relocate</em></a> command to <em>relocate</em> or point the checkout to the new repository URL:</p>
<pre><code>svn sw --relocate http://svn.automattic.com/wordpress/tags/2.7.1/ http://core.svn.wordpress.org/tags/2.7.1/ .</code></pre>
<p>Note that we are just changing the checkout&#8217;s repository from the old one to the new one &#8211; we aren&#8217;t yet pointing to the <em>new</em> version.  (Note &#8211; this assumes you are currently running version 2.7.1)</p>
<p>After this, we can now we can switch to the new version.</p>
<pre><code>svn sw http://core.svn.wordpress.org/tags/2.8/ .</code></pre>
<p>Additionally, it&#8217;s worthwhile to run an <code>svn up</code> after this, just to make sure externals (like Akismet) are properly updated as well.</p>
<p>Note that this overall process has two steps &#8211; first pointing the checkout to the new repository <acronym class="uttInitialism" title="Uniform Resource Locator">URL</acronym>, without switching to the new version, and then switching to the new version.  I am not sure if you have to do it in two steps like this, but I can confirm this worked for me, and judging by the <a href="http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.switch.html">instructions in the SVN documentation</a>, this is likely the correct way.</p>
<hr/>Copyright &copy; 2012 <strong><a href="http://unitstep.net">unitstep.net</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://unitstep.net/blog/2009/06/15/problems-updating-to-wordpress-2-8-using-svn/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Protecting SVN metadata folders on a web server</title>
		<link>http://unitstep.net/blog/2008/07/27/protecting-svn-metadata-folders-on-a-web-server/</link>
		<comments>http://unitstep.net/blog/2008/07/27/protecting-svn-metadata-folders-on-a-web-server/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 02:47:51 +0000</pubDate>
		<dc:creator>Peter Chng</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[deny]]></category>

		<guid isPermaLink="false">http://unitstep.net/?p=349</guid>
		<description><![CDATA[I recently changed my WordPress install over to an SVN checkout in order to get rid of the tedious steps required to upgrade every time a new version is released. Thankfully, following the well-written guide on the WordPress.org Codex was easy and straightforward &#8211; both for changing this existing installation over to SVN and for [...]]]></description>
			<content:encoded><![CDATA[<p>I recently changed my WordPress install over to an <a href="http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion">SVN checkout</a> in order to get rid of the tedious steps required to upgrade every time a new version is released.</p>
<p>Thankfully, following the well-written guide on the WordPress.org Codex was easy and straightforward &#8211; both for changing this existing installation over to SVN and for setting up a <a href="http://blog.runtrackr.com">new blog</a> for <a href="http://runtrackr.com">RunTrackr</a>.  I now look forward to updates, just so I can relish in the ease of upgrading.  <img src='http://unitstep.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>SVN is a powerful tool (I use it both at work and for personal projects) and is a great SCM tool for small-to-medium sized projects.  The command-line tool is easy to use, and for Windows, the great <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a> tool can&#8217;t be beat. (It integrates nicely with the Windows explorer and is compatible with the Eclipse Subclipse SVN integration plugin)  Additionally, the integrated Apache <acronym class="uttInitialism" title="HyperText Transfer Protocol">HTTP</acronym> server lends itself nicely to many web-based applications that not only enable browsing but also form the basis for some remote backup/file-sharing/synchronizing services out there.</p>
<p>One thing you&#8217;ll probably want to do after switching WordPress (or any web application) to a SVN checkout is to protect the <code>.svn</code> metadata folders from public access.  These folders are used by the Subversion client to keep track of changes and determine what files need to be updated when getting the latest versions.  They also contain information about what SVN server you are using &#8211; in some cases you don&#8217;t want to reveal these details, and in any case it&#8217;s always best practice to deny access to anything except for that which you explicitly want to make public.</p>
<p>Doing this is fairly straightforward with Apache.  All you need to do is edit your <code>.htaccess</code> file in the root of your web directory.  Add an entry like this:</p>
<pre><code># SVN metadata folder protection.
&lt;IfModule mod_rewrite.c&gt;
  RewriteRule ^(.*/)?\.svn/ - [F,L]
&lt;/IfModule&gt;</code></pre>
<p>This works for me, though <a href="http://forum.webfaction.com/viewtopic.php?id=1069">some have used</a> other regular expressions to accomplish the same task.</p>
<hr/>Copyright &copy; 2012 <strong><a href="http://unitstep.net">unitstep.net</a></strong>. This Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact <strong><a href="mailto:webmaster@unitstep.net">webmaster@unitstep.net</a></strong> for more information.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">Plugin</a> by <a href="http://www.taragana.com/">Taragana</a></span>]]></content:encoded>
			<wfw:commentRss>http://unitstep.net/blog/2008/07/27/protecting-svn-metadata-folders-on-a-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

