<?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>Something Similar &#187; Uncategorized</title>
	<atom:link href="http://somethingsimilar.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://somethingsimilar.com</link>
	<description>Just like it.</description>
	<lastBuildDate>Tue, 08 Sep 2009 16:30:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Moving From Bzr to Git (or &#8220;Tailor is So Awesome I Cream My Pants&#8221;)</title>
		<link>http://somethingsimilar.com/2008/05/01/moving-from-bzr-to-git-or-tailor-is-so-awesome-i-cream-my-pants/</link>
		<comments>http://somethingsimilar.com/2008/05/01/moving-from-bzr-to-git-or-tailor-is-so-awesome-i-cream-my-pants/#comments</comments>
		<pubDate>Fri, 02 May 2008 03:01:51 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.somethingsimilar.com/wordpress/2008/05/01/moving-from-bzr-to-git-or-tailor-is-so-awesome-i-cream-my-pants/</guid>
		<description><![CDATA[rFeedParser obviously has not gotten enough love from me.  I intend to correct that. 

The first order of business was to stop hosting its branches in bzr on this server.  No one knew the repositories existed, they were sucking up tons of hard drive space, and, dammit, I&#8217;ve been digging git ever since [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rfeedparser.rubyforge.org">rFeedParser</a> obviously has not gotten enough love from me.  I intend to correct that. </p>

<p>The first order of business was to stop hosting its branches in bzr on this server.  No one knew the repositories existed, they were sucking up tons of hard drive space, and, dammit, I&#8217;ve been digging git ever since <a href="http://scie.nti.st/">Garry</a> turned me onto it.  Oh, and getting rFeedParser into a svn repository on rubyforge required <code>bzr svn</code> which required me patching <code>svn</code> on my Mac Book Pro. Too much damn work.  </p>

<p>But I also don&#8217;t want to lose all of those commit logs.  I&#8217;d feel guilty pretending that rFeedParser just magically appeared in its current state without showing off how many times it looked even worse.  I decided that I needed just the main branch turned into the master branch of a new git repository and that I&#8217;d host it up on GitHub.  </p>

<p>Enter <a href="http://wiki.darcs.net/DarcsWiki/Tailor">tailor</a>.  <code>tailor</code> is an amazing bit of Python that can translate from most any version control system to most any other control system.  Trying to describe all of the other crazy source control backflips it can do would take up too much space here, but, I assure, its worth checking out.  Go do your googlings.  </p>

<p><code>tailor</code> made it drop dead simple to move rfeedparser over, but I had some significant help making that happen.  <a href="http://bryan-murdock.blogspot.com/2007/07/how-to-convert-bazaar-repo-to-git.html">Bryan Murdock</a>&#8217;s post on this exact same topic was a great boon, but not perfect.  In the time since he posted, either the config file for <code>tailor</code> changed, or some kind of bizarro bit rot occurred.</p>

<p>In any case, I munged up the config file, looked up some more docs and, now, I present you with a simple way of moving your current bzr branch into a brand spanking new git repository.  (How lucky you are!)</p>

<p>First things first, you&#8217;ll need bzr, git and tailor.  The first two I had installed via MacPorts (verions 1.3.1 and 1.5.5.1, respectively) while the latter was a bit of a pain.  You can install it via MacPorts, but by default it tries to run in the Python 2.4 environment when bzr is installed over in the 2.5 one.  Bleh. </p>

<p>What I had to do, was grab the tailor code myself (version 0.9.30), unpack it (say, to <code>~/src</code>) and run it with <code>python2.5</code> explicitly. For those of you on Macs, substitute <code>python2.5 ~/src/tailor-0.9.30/tailor</code> for <code>tailor</code> when I write it in the commands below.  The rest of you can be blissfully unaware that there is any problem at all because your package management system probably doesn&#8217;t suck as much as MacPorts.  </p>

<p>First things first.  Find your bzr branch while I, for the sake of this post, it&#8217;s at <code>/path/to/bzrbranch</code>.  Next, decide where you want the git branch to exist which, again for the sake of this post, I&#8217;ll pretend is <code>/path/to/gitrepo</code>.</p>

<p>Now, anywhere at all, write a file (which we&#8217;ll call <code>bzr2git.conf</code>) containing:</p>

<pre><code>[DEFAULT]
verbose = True
patch-name-format = ""

[project]
source = bzr:source
target = git:target
start-revision = INITIAL
root-directory = /path/to/gitrepo
state-file = tailor.state

[bzr:source]
repository = /path/to/bzrbranch


[git:target]
git-command=/opt/local/bin/git
</code></pre>

<p>Notice the <code>git-command</code> line at the end.  That&#8217;s only for lame-o MacPort users because <code>tailor</code> doesn&#8217;t seem to understand <code>$PATH</code> or something, freaks out about not being able to find the <code>git</code> command and leaves us questioning our ability to manage our own systems. Leave it out, or change the path to right one if you&#8217;re one another system.</p>

<p>Finally, run </p>

<pre><code>tailor -D -c bzr2git.conf
</code></pre>

<p>and you&#8217;ll have a happy new git repository at <code>/path/to/bzrbranch</code> with your history intact.  Oh! And it&#8217;ll have the <code>.bzr</code> directory in it but you can feel free to clear it out.  The old <code>bzr</code> branch will still have all that info in place. </p>

<p>And you&#8217;re done.  I&#8217;ll be following up with information on what&#8217;s up with rFeedParser in the next post.</p>

<p>Update: Now see this: <a href="http://www.somethingsimilar.com/wordpress/2008/05/02/rfeedparser-on-github/">rFeedParser on GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://somethingsimilar.com/2008/05/01/moving-from-bzr-to-git-or-tailor-is-so-awesome-i-cream-my-pants/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>My First Earthquake</title>
		<link>http://somethingsimilar.com/2007/08/09/my-first-earthquake/</link>
		<comments>http://somethingsimilar.com/2007/08/09/my-first-earthquake/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 08:44:46 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.somethingsimilar.com/wordpress/2007/08/09/my-first-earthquake/</guid>
		<description><![CDATA[I just went through my first earthquake, a breezy 4.5 (initial estimate), and it wasn&#8217;t so bad.  I&#8217;ve never really heard a description of a &#8220;light&#8221; earthquake and certainly did not expect what happened.  Hell, it took me until after the worst of it to realize what it might have been and even [...]]]></description>
			<content:encoded><![CDATA[<p>I just went through my first earthquake, a <a href="http://quake.wr.usgs.gov/recenteqs/Quakes/ci14312160.htm">breezy 4.5</a> (initial estimate), and it wasn&#8217;t so bad.  I&#8217;ve never really heard a description of a &#8220;light&#8221; earthquake and certainly did not expect what happened.  Hell, it took me until after the worst of it to realize what it might have been and even then I wasn&#8217;t sure. </p>

<p>At first, I had thought somebody had just dropped something outside onto a truck with a wooden flatbed, but the sound just kept <em>going</em>.  It took me until after the sound had stopped and the &#8220;shaking&#8221; was still going to really put it together.  It was really quite a nice little ride, more like a <a href="http://www.lon-capa.org/~mmp/applist/damped/d.htm">well-damped oscillator</a> than a real shake.</p>
]]></content:encoded>
			<wfw:commentRss>http://somethingsimilar.com/2007/08/09/my-first-earthquake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
