<?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>Autre-Chose &#187; statusnet</title>
	<atom:link href="http://blog.autre-chose.org/tag/statusnet/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.autre-chose.org</link>
	<description>-- Parce que vous êtes libres</description>
	<lastBuildDate>Tue, 05 Jan 2010 22:04:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<cloud domain='blog.autre-chose.org' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com" />
	<atom:link rel="hub" href="http://superfeedr.com/hubbub" />
			<item>
		<title>Presenting HgStatusNet</title>
		<link>http://blog.autre-chose.org/2009/12/21/presenting-hgstatusnet?utm_source=subscriber&amp;utm_medium=rss&amp;utm_campaign=rss</link>
		<comments>http://blog.autre-chose.org/2009/12/21/presenting-hgstatusnet#comments</comments>
		<pubDate>Mon, 21 Dec 2009 22:48:59 +0000</pubDate>
		<dc:creator>mdupuis</dc:creator>
				<category><![CDATA[Programmation]]></category>
		<category><![CDATA[Projets]]></category>
		<category><![CDATA[Mercurial]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[statusnet]]></category>

		<guid isPermaLink="false">http://blog.autre-chose.org/?p=247</guid>
		<description><![CDATA[This semester, I had to do a project totalizing about 300 man-hours. I chose to do VeHO, a distribution platform including a server and a client. The project was under revision control (mercurial, for that matter) and every part of the platform in its own sub-repository. Anyway, to help me keep track of what was [...]]]></description>
			<content:encoded><![CDATA[<p>This semester, I had to do a project totalizing about 300 man-hours. I chose to do <a href="/veho">VeHO</a>, a distribution platform including a server and a client. The project was under revision control (mercurial, for that matter) and every part of the platform in its own sub-repository. Anyway, to help me keep track of what was being pushed to the main repository, I coded a little mercurial hook in python that, every time someone pushed a revision, it updated a <a href="http://status.net">StatusNet</a> account. I present you <a href="http://bitbucket.org/mdupuis/hgstatusnet/">hgstatusnet</a>.</p>
<p>The configuration is pretty straight forward and can be set up to update a private account on your private StatusNet instance. In your <code>.hgrc</code> file, just add this section:<br />
<code><br />
[statusnet]<br />
username = hgstatusnet<br />
password = secret<br />
server = http://localhost<br />
path = /statusnet<br />
;preprend =<br />
</code></p>
<p>The server and path settings are used to locate the StatusNet instance. In my example, my instance lives at http://localhost/statusnet. I&#8217;m also updating hgstatusnet&#8217;s account. If I wanted, I could preprend a little bit of text to every message to differentiate repositories, for example.</p>
<p>You also need to configure the hook, like so:<br />
<code><br />
[hooks]<br />
incoming.hgstatusnet = python:hgstatusnet.statusnetutils.post_statusnet_hook<br />
</code></p>
<p>Be sure that the <a href="http://bitbucket.org/mdupuis/hgstatusnet/">hgstatusnet module</a> is in your python path. Otherwise, it won&#8217;t work. Also, be aware that this is an early version and I may want/need to implement more features in the future and that this code comes without warranty.</p>
<p><strong>update</strong> (jan. 5th):<br />
If you have any questions, comments or just want to share your experience, please don&#8217;t hesitate.</p>
 <img src="http://blog.autre-chose.org/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=247" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.autre-chose.org/2009/12/21/presenting-hgstatusnet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
