<?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>tensixtyone &#187; guide</title>
	<atom:link href="http://tensixtyone.com/tags/guide/feed" rel="self" type="application/rss+xml" />
	<link>http://tensixtyone.com</link>
	<description>Rants of Andrew Williams / Nik_Doof</description>
	<lastBuildDate>Fri, 25 Jun 2010 10:58:02 +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>Importing History into Git</title>
		<link>http://tensixtyone.com/perma/importing-history-into-git</link>
		<comments>http://tensixtyone.com/perma/importing-history-into-git#comments</comments>
		<pubDate>Wed, 15 Apr 2009 12:31:01 +0000</pubDate>
		<dc:creator>Andrew Williams</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://tensixtyone.com/?p=514</guid>
		<description><![CDATA[With my recent move over to Git for my VCS Home solution I decided to start afresh with new repositories and not migrating the history over, in the last few days i&#8217;ve noted that it was a very bad decision and having the full history will always be useful. Now i&#8217;m stuck in the situation [...]]]></description>
			<content:encoded><![CDATA[<p>With my recent move over to Git for my VCS Home solution I decided to start afresh with new repositories and not migrating the history over, in the last few days i&#8217;ve noted that it was a very bad decision and having the full history will always be useful. Now i&#8217;m stuck in the situation of two repos with different histories. How do you reconcile these two trees into one full history tree?</p>
<p>First of all we need a working Git version of your existing repo, in my case, it&#8217;s in SVN, so I used the git-svn tool to import my svn repository.</p>
<pre>$ cd ~/dev/
$ git svn clone http://tensixtyone.com/svn/home/trunk/bash</pre>
<p>Git then downloads each SVN commit and imports it, this can be quite slow on large repositories but thankfully mine was only 20 or so commits. Now you have your originally repository in Git format the few final steps will bring in the changes you have done in the new repository.</p>
<p>To import the history we are going to generate a set of diffs, while this sounds less than ideal it is really the only clean way to get your new commits into your old repository, attempting to pull the commits in will throw errors as the commit hashes will not match.</p>
<p>First of all you need to find out the hash of your first commit in your new repository</p>
<pre>$ cd ~/.dotfiles/bash
$ git log

...

commit ec508803a080f2146231fb4cd396cc18a2906a9b
Author: Andrew Williams
Date:   Sat Apr 11 02:32:07 2009 +0100

    Imported initial bash files</pre>
<p>Then generate the diffs since that initial commit</p>
<pre>$ git format-patch ec508803a080f2146231fb4cd396cc18a2906a9b..HEAD
0001-Added-bash_logout-file.patch
0002-Updated-bash-config-files.patch
0003-Updated-a-few-aliases.patch
0004-Updated-prompt-to-detect-if-we-re-using-vcsh.patch
0005-Fixed-nano-alias.patch</pre>
<p>Now you have your fresh diffs, you need to import them into your existing repository. In addition i&#8217;m importing these into a new branch.</p>
<pre>$ cd ~/dev/bash/
$ git branch new-bash
$ git am ~/*.patch</pre>
<p>The am command is mostly used to apply patches from a mailbox but for this case we can just tell it to use the patch files instead. After the command has completed you should be able to check git log and be able to see all the new commits.</p>
<p>Once your happy with the patches, it&#8217;s a case of switching to master and merging the changes.</p>
<pre>$ git checkout master
$ git merge new-bash</pre>
<p>One thing to note, after this process the commits will have different hashes, so it wont be a simple case of pushing to your remote repo. I&#8217;d only recommend doing this if you have to, i&#8217;m sure that a better proceedure exists but this is what worked for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://tensixtyone.com/perma/importing-history-into-git/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropbox on Debian</title>
		<link>http://tensixtyone.com/perma/dropbox-on-debian</link>
		<comments>http://tensixtyone.com/perma/dropbox-on-debian#comments</comments>
		<pubDate>Sat, 13 Sep 2008 07:45:57 +0000</pubDate>
		<dc:creator>Andrew Williams</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[gusty]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[s3]]></category>
		<category><![CDATA[sid]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[webdav]]></category>

		<guid isPermaLink="false">http://tensixtyone.com/?p=385</guid>
		<description><![CDATA[Dropbox is out of closed beta and is open for the public, but what is more interesting is that they now have a client for Linux. I&#8217;ve had a beta email sat in my inbox for about 3-4 months, but I&#8217;ve never got round to signing up as I couldn&#8217;t get a client for Linux. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://getdropbox.com/">Dropbox</a> is out of closed beta and is open for the public, but what is more interesting is that they now have a <a href="http://www.getdropbox.com/install?os=linux">client for Linux</a>. I&#8217;ve had a beta email sat in my inbox for about 3-4 months, but I&#8217;ve never got round to signing up as I couldn&#8217;t get a client for Linux.</p>
<p>Dropbox is one of the new wave of online storage, sort of a cross between <a href="http://www.webdav.org/">WebDAV</a> and <a href="http://subversion.tigris.org/">SVN</a>, in fact, I&#8217;d say its almost exactly like SVN, just with a nice GUI. I guess all it would need to take the &#8220;value-added&#8221; part of this product is for someone to develop a nice front end for <a href="http://aws.amazon.com/s3">Amazon S3</a>, and by looking at their future prices it could be cheaper.</p>
<p>Anyway, picking out the bits of the service is not what I&#8217;m here to do. At the moment I run a <a href="http://www.debian.org/">Debian</a> Testing/Unstable desktop machine, I was quite disappointed to not see a specific Debian package for their software on the website. I realised after a few dumb minutes that I could use the Ubuntu packages.</p>
<p>In sources.list, I referenced their Gusty archive</p>
<pre class="code">deb http://www.getdropbox.com/static/ubuntu gutsy main</pre>
<p>Then in /etc/apt/preferences I set some basic package pinning to make sure that any packages didn&#8217;t collide with the existing Debian repository, not likely but you never know.</p>
<pre class="code">Package: *
Pin: release a=gutsy
Pin-Priority: 400</pre>
<p>Do a &#8220;apt-get update&#8221; and you should have the &#8220;nautilus-dropbox&#8221; package available to install. Simple!</p>
<p>Remember, you&#8217;ll need to restart nautilus by either killing it (killall -9 nautilus) or restarting your Gnome session.</p>
<p>[edit: Fixed the first URL]</p>
]]></content:encoded>
			<wfw:commentRss>http://tensixtyone.com/perma/dropbox-on-debian/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
