<?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>david winter &#187; mercurial</title>
	<atom:link href="http://davidwinter.me.uk/articles/tag/mercurial/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidwinter.me.uk</link>
	<description>you were expecting someone else?</description>
	<lastBuildDate>Mon, 28 Jun 2010 20:37:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Install Mercurial on CentOS 4</title>
		<link>http://davidwinter.me.uk/articles/2010/04/18/install-mercurial-on-centos-4/</link>
		<comments>http://davidwinter.me.uk/articles/2010/04/18/install-mercurial-on-centos-4/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 18:42:22 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/?p=171</guid>
		<description><![CDATA[We&#8217;ve finally moved to Mercurial at work (well, we didn&#8217;t exactly move from anywhere, but that&#8217;s another story&#8230;). Our production server is running CentOS 4, which comes installed with Python 2.3.4. Mercurial requires 2.4. No Python updates available in the yum repository. What to do? First up, install the latest version of Python to a [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve finally moved to Mercurial at work (well, we didn&#8217;t exactly move from anywhere, but that&#8217;s another story&#8230;). Our production server is running CentOS 4, which comes installed with Python 2.3.4. Mercurial requires 2.4. No Python updates available in the yum repository. What to do?</p>

<p><span id="more-171"></span></p>

<p>First up, install the latest version of Python to a location that won&#8217;t interfere with the system:</p>

<pre><code>wget http://www.python.org/ftp/python/2.6.5/Python-2.6.5.tgz
tar xvfz Python-2.6.5.tgz
cd Python-2.6.5/
./configure --prefix=/opt
make
sudo make install
</code></pre>

<p>Now we just want to test the new Python install:</p>

<pre><code>/opt/bin/python -V
</code></pre>

<p>This should come back with <code>Python 2.6.5</code>.</p>

<p>Now we install Mercurial, but tell it to use this new install of Python, rather than the default:</p>

<pre><code>cd ..
wget http://mercurial.selenic.com/release/mercurial-1.5.1.tar.gz
tar xvfz mercurial-1.5.1.tar.gz
cd mercurial-1.5.1/
sudo make install PYTHON=/opt/bin/python PREFIX=/opt
</code></pre>

<p>Now to test Mercurial has installed successfully:</p>

<pre><code>/opt/bin/hg --version
</code></pre>

<p>This should print out somewhere the version 1.5.1. Now Mercurial is setup, add it to <code>/usr/local/bin</code> so that it&#8217;s available in the path:</p>

<pre><code>sudo ln -s /opt/bin/hg /usr/local/bin/hg
</code></pre>

<p>That wasn&#8217;t too painful was it?</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2010/04/18/install-mercurial-on-centos-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Convert git repository to mercurial</title>
		<link>http://davidwinter.me.uk/articles/2009/10/17/convert-git-repository-to-mercurial/</link>
		<comments>http://davidwinter.me.uk/articles/2009/10/17/convert-git-repository-to-mercurial/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 16:13:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[hg]]></category>
		<category><![CDATA[mercurial]]></category>

		<guid isPermaLink="false">http://davidwinter.me.uk/?p=149</guid>
		<description><![CDATA[Ensure that the mercurial convert extension is enabled: nano ~/.hgrc Inside that file add: [extensions] hgext.convert= Save. Now do: hg convert my-git-repo This will create a new directory called my-git-repo-hg. This will appear empty at first, so do this: cd my-git-repo-hg hg checkout All of your files will appear and you&#8217;re ready to go.]]></description>
			<content:encoded><![CDATA[<p>Ensure that the mercurial convert extension is enabled:</p>

<pre><code>nano ~/.hgrc
</code></pre>

<p>Inside that file add:</p>

<pre><code>[extensions]
hgext.convert=
</code></pre>

<p>Save. Now do:</p>

<pre><code>hg convert my-git-repo
</code></pre>

<p>This will create a new directory called <code>my-git-repo-hg</code>. This will appear empty at first, so do this:</p>

<pre><code>cd my-git-repo-hg
hg checkout
</code></pre>

<p>All of your files will appear and you&#8217;re ready to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://davidwinter.me.uk/articles/2009/10/17/convert-git-repository-to-mercurial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
