<?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>A blog about technology, visualization, music and unmanned vehicle experiments</description>
	<lastBuildDate>Mon, 12 Jul 2010 14:47:03 +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>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[SCM]]></category>
		<category><![CDATA[python]]></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 -rn&#124;head I get: 108 ls 78 cd 53 sudo 29 python 13 cap 9 django-admin.py 9 ruby 8 vim 6 easy_install 3 bzr 1 ex 1 python2.5 1 ln 1 mksir 1 cat 1 cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc In short: I [...]]]></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>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2008%2Fwhats-your-historyawk%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></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[SCM]]></category>
		<category><![CDATA[python]]></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 that he had been using Mercurial instead of Subversion for his latest project. 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 [...]]]></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>
<div id="facebook_like"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.peterkrantz.com%2F2007%2Fto-mercurial-from-cvs%2F&amp;layout=standard&amp;show-faces=true&amp;width=450&amp;action=like&amp;font=arial&amp;colorscheme=light" scrolling="no" title="I like this" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:auto;"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.peterkrantz.com/2007/to-mercurial-from-cvs/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
