<?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>Where&#039;s Walden? &#187; bugs</title>
	<atom:link href="http://whereswalden.com/tag/bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://whereswalden.com</link>
	<description>Mozilla, politics, economics, law, backpacking, cycling, and other random desiderata</description>
	<lastBuildDate>Thu, 03 May 2012 09:13:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to not commit explicitly unreviewed changes in Mercurial</title>
		<link>http://whereswalden.com/2009/01/10/how-to-not-commit-explicitly-unreviewed-changes-in-mercurial/</link>
		<comments>http://whereswalden.com/2009/01/10/how-to-not-commit-explicitly-unreviewed-changes-in-mercurial/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 05:45:49 +0000</pubDate>
		<dc:creator>Jeff</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[hg]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[oops]]></category>

		<guid isPermaLink="false">http://whereswalden.com/?p=133</guid>
		<description><![CDATA[Earlier today I made one of the most, er, special commits to Mozilla code that I&#8217;ve ever made &#8212; entirely due to the commit message I used: Bug 466905 - Fix JSOP_NEWARRAY to be not-buggy and use it when possible. NOT REVIEWED YET If you read bug 466905 you&#8217;ll see in comment 20 that the [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier today I made one of the most, er, <em>special</em> <a href="http://hg.mozilla.org/tracemonkey/rev/6475993319c4">commits</a> to Mozilla code that I&#8217;ve ever made &mdash; entirely due to the commit message I used:</p>
<pre style="white-space: pre-wrap;">Bug 466905 - Fix JSOP_NEWARRAY to be not-buggy and use it when possible. NOT REVIEWED YET</pre>
<p>If you read <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=466905">bug 466905</a> you&#8217;ll see in <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=466905#c20">comment 20</a> that the patch was reviewed by <a href="http://weblogs.mozillazine.org/roadmap/">Brendan</a> and was committed with the requested changes.  So why is &#8220;NOT REVIEWED YET&#8221; in there?  It&#8217;s an artifact of how I manage patches-in-progress; I assign the description when I create the patch, and since I can&#8217;t know whose review will eventually grace the patch, I just add a note that I&#8217;ll see when I review the change just before commit, and I make sure to fix the description immediately before pushing it into the main repository.  What happened here is that I forgot to review the commit message for proper reviewed-ness.</p>
<pre style="white-space: pre-wrap;">
&lt;firebot&gt; Check-in: <a href="http://hg.mozilla.org/tracemonkey/rev/6475993319c4">http://hg.mozilla.org/tracemonkey/rev/6475993319c4</a> - Jeff Walden - <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=466905">Bug 466905</a> - Fix JSOP_NEWARRAY to be not-buggy and use it when possible. NOT REVIEWED YET
&lt;Waldo&gt; aargh
&lt;shaver&gt; sounds like someone needs a pre-push local hook!
&lt;Waldo&gt; quite possibly!
</pre>
<p>There&#8217;s a clear flaw in this process: the bad-commit-message check (and remembering to do it!) is done manually and can easily be forgotten.  So, at <a href="http://shaver.off.net/diary/">shaver</a>&#8216;s suggestion, I dove into the world of Mercurial hooks.  After a little reading from <a href="http://hgbook.red-bean.com/hgbookch10.html">chapter 10</a> and <a href="http://hgbook.red-bean.com/hgbookch11.html#x15-25500011.3">section 11.3</a>, I present you with <a href="/files/mozilla/ensure-not-unreviewed"><code>ensure-not-unreviewed</code></a>:</p>
<p><iframe width="500" height="400" src="/files/mozilla/ensure-not-unreviewed"></iframe></p>
<p>To use, simply drop that somewhere on your system, <code>chmod +x</code> it, and copy the following lines into <code>~/.hgrc</code> (<code>.hg/hgrc</code> if you want this configurable on a per-repository basis):</p>
<pre class="code" data-language="hgrc">
[hooks]
preoutgoing.ensure_not_unreviewed = /path/where/you/downloaded/ensure-not-unreviewed
</pre>
<p>That should take care of the problem of buggy descriptions permanently.  Now if only I could write a preoutgoing hook to prevent pushing buggy <em>patches</em>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://whereswalden.com/2009/01/10/how-to-not-commit-explicitly-unreviewed-changes-in-mercurial/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

