<?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>chris' random ramblings &#187; WordPress</title>
	<atom:link href="http://atlee.ca/blog/category/technology/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://atlee.ca/blog</link>
	<description>programming, photography, media, and anything else that strikes my fancy</description>
	<lastBuildDate>Fri, 27 Jan 2012 19:08:20 +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>Upgraded to WordPress 2.7</title>
		<link>http://atlee.ca/blog/2009/02/08/upgraded-to-wordpress-27/</link>
		<comments>http://atlee.ca/blog/2009/02/08/upgraded-to-wordpress-27/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 06:40:14 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://atlee.ca/blog/?p=295</guid>
		<description><![CDATA[I just spent a few minutes upgrading my blog to wordpress 2.7. Looks like everything went smoothly! I did this upgrade with mercurial queues again. WordPress 2.7 is supposed to have better upgrade support built in, so I may not need mercurial for future upgrades. Please let me know if you notice anything strange or [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent a few minutes upgrading my blog to wordpress 2.7.  Looks like everything went smoothly!  I did this upgrade with <a href="http://atlee.ca/blog/2008/10/25/upgrading-wordpress-with-mercurial/">mercurial queues again</a>.  WordPress 2.7 is supposed to have better upgrade support built in, so I may not need mercurial for future upgrades.</p>
<p>Please let me know if you notice anything strange or missing since the upgrade. </p>
]]></content:encoded>
			<wfw:commentRss>http://atlee.ca/blog/2009/02/08/upgraded-to-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading WordPress with Mercurial</title>
		<link>http://atlee.ca/blog/2008/10/25/upgrading-wordpress-with-mercurial/</link>
		<comments>http://atlee.ca/blog/2008/10/25/upgrading-wordpress-with-mercurial/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 02:36:00 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://atlee.ca/blog/?p=179</guid>
		<description><![CDATA[Since Mozilla has started using Mercurial for source control, I thought I shoud get some hands on experience with it. My WordPress dashboard has been nagging me to upgrade to the latest version for quite a while now. I was running 2.5.1 up until today, which was released back in April. I&#8217;ve been putting off [...]]]></description>
			<content:encoded><![CDATA[<p>Since <a href="http://mozilla.com">Mozilla</a> has started using <a href="http://www.selenic.com/mercurial/wiki/">Mercurial</a> for source control, I thought I shoud get some hands on experience with it.</p>
<p>My <a href="http://wordpress.org">WordPress</a> dashboard has been nagging me to upgrade to the latest version for quite a while now.  I was running 2.5.1 up until today, which was released back in April.  I&#8217;ve been putting off upgrading because it&#8217;s always such a pain if you follow the recommended instructions, and I inevitably end up forgetting to migrate some customization I made to the old version.</p>
<p>So, to kill two birds with one stone, I decided to try my hand at upgrading WordPress by using Mercurial to track my changes to the default install, as well as the changes between versions of WordPress.</p>
<p><strong>Preparation:</strong><br />
First, start off with a copy of my blog&#8217;s code in a directory called &#8216;blog&#8217;.<br />
Download WordPress 2.5.1 and 2.6.3 (the version I want to upgrade to).</p>
<p><strong>Import initial WordPress code:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxf wordpress-2.5.1.tar.gz <span style="color: #666666; font-style: italic;"># NB: unpacks into wordpress/</span>
<span style="color: #c20cb9; font-weight: bold;">mv</span> wordpress wordpress-2.5.1
<span style="color: #7a0874; font-weight: bold;">cd</span> wordpress-2.5.1
hg init
hg commit <span style="color: #660033;">-A</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">'wordpress 2.5.1'</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..</pre></div></div>

<p><strong>Apply my changes:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hg clone wordpress-2.5.1 wordpress-mine
<span style="color: #7a0874; font-weight: bold;">cd</span> wordpress-mine
hg qnew <span style="color: #660033;">-m</span> <span style="color: #ff0000;">'my blog'</span> my-blog.patch
hg <span style="color: #c20cb9; font-weight: bold;">locate</span> <span style="color: #660033;">-0</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">rm</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-ar</span> ..<span style="color: #000000; font-weight: bold;">/</span>blog<span style="color: #000000; font-weight: bold;">/*</span> .
hg addremove
hg qrefresh
<span style="color: #7a0874; font-weight: bold;">cd</span> ..</pre></div></div>

<p>The &#8216;hg locate -0&#8242; line removes all the files currently tracked by Mercurial.  This is needed so that any files I deleted from my copy of WordPress also are deleted in my Mercurial repository.</p>
<p>The result of these two steps is that I have a repository that has the original WordPress source code as one revision, with my changes applied as a <a href="http://hgbook.red-bean.com/hgbookch12.html">Mercurial Queue</a> patch.</p>
<p>Now I need to tell Mercurial what&#8217;s changed between versions 2.5.1 and 2.6.3.  To do this, I&#8217;ll make a copy (or clone) of the 2.5.1 repository, and then put all the 2.6.3 files into it.  Again, I use &#8216;hg locate -0 | xargs -0 rm&#8217; to delete all the files from the old version before copying the new files in.  Mercurial is smart enough to notice if files haven&#8217;t changed, and the subsequent commit with the &#8216;-A&#8217; flag will add any new files or delete any files that were removed between 2.5.1 and 2.6.3.</p>
<p><strong>Upgrade the pristine 2.5.1 to 2.6.3:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hg clone wordpress-2.5.1 wordpress-2.6.3
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxf wordpress-2.6.3 <span style="color: #666666; font-style: italic;"># NB: Unpacks into wordpress/</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> wordpress-2.6.3
hg <span style="color: #c20cb9; font-weight: bold;">locate</span> <span style="color: #660033;">-0</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">rm</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-ar</span> ..<span style="color: #000000; font-weight: bold;">/</span>wordpress<span style="color: #000000; font-weight: bold;">/*</span> .
hg commit <span style="color: #660033;">-A</span> <span style="color: #660033;">-m</span> <span style="color: #ff0000;">'wordpress-2.6.3'</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ..</pre></div></div>

<p>Now I need to perform the actual upgrade to my blog.  First I save the state of the current modifications, then pull in the 2.5.1 -> 2.6.3 changes from the wordpress-2.6.3 repository.  Then I reapply my changes to the new 2.6.3 code.</p>
<p><strong>Pull in 2.6.3 to my blog:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> wordpress-mine
hg qsave <span style="color: #660033;">-e</span> <span style="color: #660033;">-c</span>
hg pull ..<span style="color: #000000; font-weight: bold;">/</span>wordpress-2.6.3
hg update <span style="color: #660033;">-C</span>
hg qpush <span style="color: #660033;">-a</span> <span style="color: #660033;">-m</span></pre></div></div>

<p>VoilÃ !  A quick rsync to my website, and the upgrade is complete!</p>
<p>I have to admit, I don&#8217;t fully grok some of these Mercurial commands.  It took a few tries to work out this series of steps, so there&#8217;s probably a better way of doing it.  I&#8217;m pretty happy overall though; I managed a successful WordPress upgrade, and learned something about Mercurial in the process!  The next upgrade should go much more smoothly now that I&#8217;ve figured things out a bit better.</p>
]]></content:encoded>
			<wfw:commentRss>http://atlee.ca/blog/2008/10/25/upgrading-wordpress-with-mercurial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mark Jaquith&#8217;s WordPress 2.0.3 upgrade</title>
		<link>http://atlee.ca/blog/2006/06/02/mark-jaquiths-wordpress-203-upgrade/</link>
		<comments>http://atlee.ca/blog/2006/06/02/mark-jaquiths-wordpress-203-upgrade/#comments</comments>
		<pubDate>Fri, 02 Jun 2006 17:05:17 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://atlee.ca/blog/2006/06/02/mark-jaquiths-wordpress-203-upgrade/</guid>
		<description><![CDATA[I have downloaded and installed Mark Jaquith&#8217;s WordPress 2.0.3 Changed Files ZIP package. I have verified that the Changed Files ZIP package contains nothing that is not in the original WordPress 2.0.3 download, so it is safe to use as far as I can tell. Verifying this took more time than actually doing the upgrade! [...]]]></description>
			<content:encoded><![CDATA[<p>I have downloaded and installed <a href="http://markjaquith.wordpress.com/">Mark Jaquith&#8217;s</a> <a href="http://markjaquith.wordpress.com/2006/06/01/wordpress-203-upgrade-changed-files-zip-changes-diff-changed-files-list/">WordPress 2.0.3 Changed Files ZIP package</a>.</p>
<p>I have verified that the Changed Files ZIP package contains nothing that is not in the original <a href="http://wordpress.org/development/2006/06/wordpress-203/">WordPress 2.0.3 download</a>, so it is safe to use as far as I can tell.  Verifying this took more time than actually doing the upgrade!</p>
<p>I think the WordPress release team should provide something similar, as this is a much more convienient way of upgrading for those of us with just FTP access to our web hosts.</p>
]]></content:encoded>
			<wfw:commentRss>http://atlee.ca/blog/2006/06/02/mark-jaquiths-wordpress-203-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

