<?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>solutions.hans-eric.com &#187; SubVersion</title>
	<atom:link href="http://solutions.hans-eric.com/category/subversion/feed" rel="self" type="application/rss+xml" />
	<link>http://solutions.hans-eric.com</link>
	<description>Hans-Eric Grönlund's Log of Solutions to Technical Problems</description>
	<lastBuildDate>Fri, 23 Apr 2010 07:39:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrading a Customized Wordpress Theme</title>
		<link>http://solutions.hans-eric.com/upgrading-a-customized-wordpress-theme</link>
		<comments>http://solutions.hans-eric.com/upgrading-a-customized-wordpress-theme#comments</comments>
		<pubDate>Fri, 13 Nov 2009 15:51:19 +0000</pubDate>
		<dc:creator>Hans-Eric</dc:creator>
				<category><![CDATA[SubVersion]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://solutions.hans-eric.com/?p=30</guid>
		<description><![CDATA[Problem:
You&#8217;re using a third party wordpress theme but have made changes to customize it for your own needs (changed a picture, added advertising, etc.). When the third party releases an upgrade to the theme you&#8217;d like to upgrade but don&#8217;t want to lose your changes.
Solution:
Let your version management system move your changes over to the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>You&#8217;re using a third party wordpress theme but have made changes to customize it for your own needs (changed a picture, added advertising, etc.). When the third party releases an upgrade to the theme you&#8217;d like to upgrade but don&#8217;t want to lose your changes.</p>
<p><strong>Solution:</strong></p>
<p>Let your version management system move your changes over to the new version for you. I use Subversion, but any modern VMS should do fine as well. Here&#8217;s the steps I use to upgrade from, let&#8217;s say Cool Theme 1.0 (that contain my changes) to Cool Theme 1.1.</p>
<ol>
<li>Import the original version of Cool Theme 1.0 (without my changes) to Subversion. I use a repository path like /reposroot/cooltheme/trunk.</li>
<li>Create a tag to freeze the 1.0-version. In Subversion you just copy the above directory, I name the new directory something like /reposroot/cooltheme/tags/1_0.</li>
<li>Create a branch from the 1_0 tag. I&#8217;d name the branch /reposroot/cooltheme/branches/r1_0.</li>
<li>Checkout the r1_0 branch to a local working directory.</li>
<li>Copy the files of the updated version of Cool Theme, the one that contain your changes, to your working directory.</li>
<li>Check in. Now you have the current version in the r1_0 branch.</li>
<li>Delete the working copy if you like, it has served it&#8217;s purpose and the time has come for the actual upgrade.</li>
<li>Checkout the trunk branch (reposroot/cooltheme/trunk in my example) to a working directory.</li>
<li>Copy the files of the upgraded theme to the working directory.</li>
<li>Check in the changes.</li>
<li>Once again, delete the working copy if you wish.</li>
<li>Create a tag for the new version (reposroot/cooltheme/tags/1_1 for example).</li>
<li>Create a branch for the new release (copy the 1_1 tag to reposroot/cooltheme/branches/r1_1)</li>
<li>Merge the changes between r1_0 and r1_1</li>
<li>Handle conflicts</li>
<li>Check in.</li>
<li>Voila! You should now have an upgraded version with your changes in the new release branch (reposroot/cooltheme/branches/r1_1)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://solutions.hans-eric.com/upgrading-a-customized-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
