<?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>Peter Krantz &#187; SCM</title>
	<atom:link href="http://www.peterkrantz.com/category/scm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peterkrantz.com</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 09:57: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>What&#8217;s your history&#124;awk&#8230;</title>
		<link>http://www.peterkrantz.com/2008/whats-your-historyawk/</link>
		<comments>http://www.peterkrantz.com/2008/whats-your-historyawk/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 20:41:12 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[SCM]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/?p=144</guid>
		<description><![CDATA[Via Bill de hÓra. Run this from the command line: history&#124;awk '{a[$2]++} END{for(i in a){printf "%5d\t%s ",a[i],i}}'&#124;sort ...]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://www.dehora.net/journal/2008/04/10/that-looks-about-right/">Bill de hÓra</a>. Run this from the command line:</p>
<p><kbd>history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s ",a[i],i}}'|sort -rn|head</kbd></p>
<p>I get:</p>
<p>108	ls<br />
78	cd<br />
53	sudo<br />
29	python<br />
13	cap<br />
9	django-admin.py<br />
9	ruby<br />
8	vim<br />
6	easy_install<br />
3 bzr<br />
1	ex<br />
1	python2.5<br />
1	ln<br />
1	mksir<br />
1	cat<br />
1 cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc</p>
<p>In short:</p>
<ul>
<li>I have trouble with my default python installation.</li>
<li>I am trying Django for small project.</li>
<li>I was hit by the Leopard keyboard repeat freeze bug.</li>
<li>I am poor at spelling simple commands.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2008/whats-your-historyawk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First impressions of Mercurial (as an alternative to subversion)</title>
		<link>http://www.peterkrantz.com/2007/to-mercurial-from-cvs/</link>
		<comments>http://www.peterkrantz.com/2007/to-mercurial-from-cvs/#comments</comments>
		<pubDate>Fri, 04 May 2007 15:33:40 +0000</pubDate>
		<dc:creator>Pete</dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[SCM]]></category>

		<guid isPermaLink="false">http://www.peterkrantz.com/2007/to-mercurial-from-cvs/</guid>
		<description><![CDATA[So, I was in the mall the other day where I bumped into Marcus Ahnve. He mentioned ...]]></description>
			<content:encoded><![CDATA[<p>So, I was in the mall the other day where I bumped into <a href="http://marcus.ahnve.com/">Marcus Ahnve</a>. He mentioned that he had been using <a href="http://en.wikipedia.org/wiki/Mercurial_%28software%29">Mercurial</a> instead of Subversion for his latest project.</p>
<p>Just before I met Marcus I had been coding on a rails project housed in subversion. I was sitting in a cafe without internet access which means that it wasn&#8217;t possible to commit changes to subversion. As my son was asleep time was scarce and I wanted to get as much done as possible. So what do you do? Well I continued coding on a different part of the application and in the end I had a fairly large changeset waiting to be committed.</p>
<p>This makes for bad coding practices. A large changeset is more likely to create problems for your colleagues when the do an update from the repository. I really wanted to be able to create several changesets offline and put them back in when my connection was restored.</p>
<h2>Trying Mercurial as an alternative to Subversion</h2>
<p>This is where <a href="http://en.wikipedia.org/wiki/Mercurial_%28software%29">Mercurial</a> comes in. With Mercurial it is easy to create changesets when you are offline. These can be pushed to a central repository (of you have one).</p>
<p>Installing Mercurial in a shared hosting account should be easy if you have access to ssh, Python and Apache. Following the <a href="http://www.dehora.net/journal/2007/04/mercurial_part_ii.html">step by step instructions by Bill de hÓra</a> it was easy to get Mercurial running on TextDrive.</p>
<p>My initial impression is that mercurial looks very promising:</p>
<ul>
<li><a href="http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart">Mercurial commands</a> are very similar to those of subversion and it was easy to set up a new repository.</li>
<li>The web interface looks very nice compared to that of subversion.</li>
<li>Capistrano can be used with mercurial.</li>
<li>It feels marginally snappier than subversion.</li>
<li>Mercurial doesn&#8217;t litter your folder tree with myriads of folders (just one in the root folder).</li>
</ul>
<p>The next step is to migrate my subversion repository history using <a href="http://progetti.arstecnica.it/tailor/">Tailor</a>. If that goes well I may well become a mercurial switcher.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2007/to-mercurial-from-cvs/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.peterkrantz.com @ 2012-02-04 11:04:40 -->
