<?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>toxicsoftware.com &#187; hg</title> <atom:link href="http://toxicsoftware.com/tag/hg/feed/" rel="self" type="application/rss+xml" /><link>http://toxicsoftware.com</link> <description>RANDOMIZE USR 0</description> <lastBuildDate>Thu, 22 Dec 2011 03:35:22 +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>Making Mercurial use the Mac OS X Keychain</title><link>http://toxicsoftware.com/hgkeychain/</link> <comments>http://toxicsoftware.com/hgkeychain/#comments</comments> <pubDate>Wed, 13 Feb 2008 17:54:10 +0000</pubDate> <dc:creator>schwa</dc:creator> <category><![CDATA[Default]]></category> <category><![CDATA[hg]]></category> <category><![CDATA[Mac OS X]]></category> <category><![CDATA[mercurial]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[rcs]]></category><guid isPermaLink="false">http://toxicsoftware.com/hgkeychain/</guid> <description><![CDATA[I&#8217;ve taken the plunge and am in the middle of switching from Subversion to Mercurial for revision control. Subversion has served me relatively faithfully for many years (I&#8217;ve even championed/led the adoption of subversion at two companies I&#8217;ve worked for &#8230; <a href="http://toxicsoftware.com/hgkeychain/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve taken the plunge and am in the middle of switching from Subversion to Mercurial for revision control. Subversion has served me relatively faithfully for many years (I&#8217;ve even championed/led the adoption of subversion at two companies I&#8217;ve worked for in the past) but some of the warts and shortcomings were beginning to annoy me (. directories everywhere for example). Dave Dribin&#8217;s <a href="http://www.dribin.org/dave/blog/archives/2007/12/30/why_mercurial/">series of posts</a> about the Mercurial DVCS software piqued my interest and I was soon switching  repositories to hg.</p><p>One feature that  added recently that hg lacked was the ability to store repository passwords in the Mac OS X keychain. In fact mercurial lacks the ability to store a repository password anywhere other than in the url used to access the repository (i.e. http://user:password@example.com/path). I think this is a bit of security flaw. The password is stored as plain text within the repository config file (&#8216;.hg/hgrc&#8217;) file.</p><p>Fortunately Mercurial provides a simple interface for extension modules. After a little bit of hacking I was able to write an hg extension that stores and retrieves the password from the keychain. I&#8217;ve put the code online for anyone to use. hgkeychain:</p><ul><li><del><a href="http://toxic-public.googlecode.com/svn/trunk/Releases/hgkeychain.tar.bz2">Download: hgkeychain.tar.bz2</a></del></li><li><del><a href="http://toxic-public.googlecode.com/svn/trunk/Projects/hgkeychain/">Source Code</a></del></li><li><del><a href="http://toxic-public.googlecode.com/svn/trunk/Projects/hgkeychain/README">README</a></del></li></ul><p>And yes the source code is currently hosted in a Subversion repository :-) I did mention I&#8217;m in the middle of transitioning to Mercurial didn&#8217;t I?</p><hr /><h2>Update</h2><p>I&#8217;ve update the project for Mercurial 1.1 &#8211; it should now work on 1.1 and also 1.0 (and lower). I&#8217;ve also decided to move the code to bitbucket instead: <a href="https://www.bitbucket.org/schwa/hgkeychain/">https://www.bitbucket.org/schwa/hgkeychain/</a></p> ]]></content:encoded> <wfw:commentRss>http://toxicsoftware.com/hgkeychain/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 4/8 queries in 0.003 seconds using disk: basic
Object Caching 268/271 objects using disk: basic

Served from: toxicsoftware.com @ 2012-05-21 14:37:52 -->
