<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: simple twitter mercurial hook</title>
	<atom:link href="http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/feed/" rel="self" type="application/rss+xml" />
	<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/</link>
	<description>Just another Stolen Notebook weblog</description>
	<lastBuildDate>Thu, 18 Mar 2010 16:04:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Daniel Macedo</title>
		<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/comment-page-1/#comment-102</link>
		<dc:creator>Daniel Macedo</dc:creator>
		<pubDate>Thu, 21 Jan 2010 01:34:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.stolennotebook.com/anthony/?p=33#comment-102</guid>
		<description>When you&#039;re using:

incoming.notify = python:hgext.hgtwitter.hook

You should place the hgtwitter.py file in your site-packages/hgext/ folder (in $PYHTONPATH)

See how modules work here:
http://docs.python.org/tutorial/modules.html

Cheers,
~ Dani</description>
		<content:encoded><![CDATA[<p>When you&#8217;re using:</p>
<p>incoming.notify = python:hgext.hgtwitter.hook</p>
<p>You should place the hgtwitter.py file in your site-packages/hgext/ folder (in $PYHTONPATH)</p>
<p>See how modules work here:<br />
<a href="http://docs.python.org/tutorial/modules.html" rel="nofollow">http://docs.python.org/tutorial/modules.html</a></p>
<p>Cheers,<br />
~ Dani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reza</title>
		<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/comment-page-1/#comment-101</link>
		<dc:creator>Reza</dc:creator>
		<pubDate>Fri, 11 Dec 2009 06:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.stolennotebook.com/anthony/?p=33#comment-101</guid>
		<description>Hello, I tried to incorporate your hgtwitter script on my mercurial server but failed to work.

Here&#039;s what I did:
- I put hgtwitter.py in the same folder as mercurial (In my Ubuntu, it is in /usr/local/lib/python2.5/site-packages/hgext

- I added these lines in /etc/mercurial/hgrc (is it okay if I put it here, since I want it to update status on Twitter for all my repos)
[extensions]
hgext.hgrc=

[hooks]
incoming.notify = python:hgext.hgtwitter.hook

[twitter]
username = my_user_name (should it be a string?)
password = my_password (should this also be a string?)


But when I try to push changes to the server, I got:
abort: incoming.notify hook is invalid (import of &quot;hgext.hgtwitter&quot; failed)


It confuses me since in python shell, import hgext.hgtwitter seems to work.

Can you help me out?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hello, I tried to incorporate your hgtwitter script on my mercurial server but failed to work.</p>
<p>Here&#8217;s what I did:<br />
- I put hgtwitter.py in the same folder as mercurial (In my Ubuntu, it is in /usr/local/lib/python2.5/site-packages/hgext</p>
<p>- I added these lines in /etc/mercurial/hgrc (is it okay if I put it here, since I want it to update status on Twitter for all my repos)<br />
[extensions]<br />
hgext.hgrc=</p>
<p>[hooks]<br />
incoming.notify = python:hgext.hgtwitter.hook</p>
<p>[twitter]<br />
username = my_user_name (should it be a string?)<br />
password = my_password (should this also be a string?)</p>
<p>But when I try to push changes to the server, I got:<br />
abort: incoming.notify hook is invalid (import of &#8220;hgext.hgtwitter&#8221; failed)</p>
<p>It confuses me since in python shell, import hgext.hgtwitter seems to work.</p>
<p>Can you help me out?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stodge</title>
		<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/comment-page-1/#comment-88</link>
		<dc:creator>Stodge</dc:creator>
		<pubDate>Fri, 13 Nov 2009 13:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.stolennotebook.com/anthony/?p=33#comment-88</guid>
		<description>Where do you save this file? In ~/.hg?

Thanks</description>
		<content:encoded><![CDATA[<p>Where do you save this file? In ~/.hg?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonymagro</title>
		<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/comment-page-1/#comment-39</link>
		<dc:creator>tonymagro</dc:creator>
		<pubDate>Tue, 19 May 2009 11:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stolennotebook.com/anthony/?p=33#comment-39</guid>
		<description>Sorry it&#039;s taken me so long to respond. I finally got around to upgrading my mercurial to 1.2.1. The extension seems to be working and doesn&#039;t produce any errors. One thing that I can think of that might cause this issue would be version 0.5 of python-twitter . The latest released version is 0.5 but I think it&#039;s from around 2007 and it seems they have been working on it without an official release for 2 years. I use the latest svn version which contains some important bug fixes. You can find the latest svn version of python-twitter here http://code.google.com/p/python-twitter/source/checkout .</description>
		<content:encoded><![CDATA[<p>Sorry it&#8217;s taken me so long to respond. I finally got around to upgrading my mercurial to 1.2.1. The extension seems to be working and doesn&#8217;t produce any errors. One thing that I can think of that might cause this issue would be version 0.5 of python-twitter . The latest released version is 0.5 but I think it&#8217;s from around 2007 and it seems they have been working on it without an official release for 2 years. I use the latest svn version which contains some important bug fixes. You can find the latest svn version of python-twitter here <a href="http://code.google.com/p/python-twitter/source/checkout" rel="nofollow">http://code.google.com/p/python-twitter/source/checkout</a> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/comment-page-1/#comment-38</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Sun, 26 Apr 2009 12:09:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.stolennotebook.com/anthony/?p=33#comment-38</guid>
		<description>Thanks! It&#039;s working great now! I&#039;m seeing one error when I do a push still, but it doesn&#039;t seem to hurt anything (I get my tweets). However, I thought I&#039;d send it along in case you had any ideas:

error: incoming.notify hook raised an exception:  object is not callable

Anyway, thank you again for this great little hook. With that (and Trac), I&#039;ve got everything I need!</description>
		<content:encoded><![CDATA[<p>Thanks! It&#8217;s working great now! I&#8217;m seeing one error when I do a push still, but it doesn&#8217;t seem to hurt anything (I get my tweets). However, I thought I&#8217;d send it along in case you had any ideas:</p>
<p>error: incoming.notify hook raised an exception:  object is not callable</p>
<p>Anyway, thank you again for this great little hook. With that (and Trac), I&#8217;ve got everything I need!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonymagro</title>
		<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/comment-page-1/#comment-37</link>
		<dc:creator>tonymagro</dc:creator>
		<pubDate>Sun, 26 Apr 2009 07:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.stolennotebook.com/anthony/?p=33#comment-37</guid>
		<description>I recall having a similar issue. I think the changeset_templater init function definition changed between mercurial 1.1 and 1.2. The &lt;a href=&quot;http://selenic.com/repo/index.cgi/hg-stable/file/02981000012e/mercurial/cmdutil.py#l698&quot; rel=&quot;nofollow&quot;&gt;1.2 definition&lt;/a&gt; takes an extra &#039;diffopts&#039; argument:
&lt;pre lang=&quot;Python&quot;&gt;def __init__(self, ui, repo, patch, diffopts, mapfile, buffered):&lt;/pre&gt;
while the &lt;a href=&quot;http://selenic.com/repo/index.cgi/hg-stable/file/2a67430f92f1/mercurial/cmdutil.py#l702&quot; rel=&quot;nofollow&quot;&gt;1.1 definition&lt;/a&gt; is missing the &#039;diffopts&#039; argument:
&lt;pre lang=&quot;Python&quot;&gt;def __init__(self, ui, repo, patch, mapfile, buffered):&lt;/pre&gt;

Passing &#039;diffopts=None&#039; as an argument to changeset_templater should solve the issue.

So the mercurial 1.2 version would look like:
&lt;pre lang=&quot;Python&quot;&gt;
t = cmdutil.changeset_templater(ui=ui, repo=repo,
                                   patch=False, diffopts=None,
                                   mapfile=None,  buffered=False)
&lt;/pre&gt;
While the mercurial 1.1 version would look like:
&lt;pre lang=&quot;Python&quot;&gt;
t = cmdutil.changeset_templater(ui=ui, repo=repo,
                                   patch=False, mapfile=None,
                                   buffered=False)
&lt;/pre&gt;

Thanks for letting me know. I think I will update the main article with the 1.2 version.</description>
		<content:encoded><![CDATA[<p>I recall having a similar issue. I think the changeset_templater init function definition changed between mercurial 1.1 and 1.2. The <a href="http://selenic.com/repo/index.cgi/hg-stable/file/02981000012e/mercurial/cmdutil.py#l698" rel="nofollow">1.2 definition</a> takes an extra &#8216;diffopts&#8217; argument:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;color: #111;"><span style="color: #ff7700;font-weight:bold;color: #B83A24;">def</span> <span style="color: #0000cd;color: #343832;">__init__</span><span style="color: black;color: #729AE3;">&#40;</span><span style="color: #008000;color: #B83A24;">self</span>, ui, repo, patch, diffopts, mapfile, buffered<span style="color: black;color: #729AE3;">&#41;</span>:</pre></div></div>

<p>while the <a href="http://selenic.com/repo/index.cgi/hg-stable/file/2a67430f92f1/mercurial/cmdutil.py#l702" rel="nofollow">1.1 definition</a> is missing the &#8216;diffopts&#8217; argument:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;color: #111;"><span style="color: #ff7700;font-weight:bold;color: #B83A24;">def</span> <span style="color: #0000cd;color: #343832;">__init__</span><span style="color: black;color: #729AE3;">&#40;</span><span style="color: #008000;color: #B83A24;">self</span>, ui, repo, patch, mapfile, buffered<span style="color: black;color: #729AE3;">&#41;</span>:</pre></div></div>

<p>Passing &#8216;diffopts=None&#8217; as an argument to changeset_templater should solve the issue.</p>
<p>So the mercurial 1.2 version would look like:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;color: #111;">t = cmdutil.<span style="color: black;color: #517656">changeset_templater</span><span style="color: black;color: #729AE3;">&#40;</span>ui=ui, repo=repo,
                                   patch=<span style="color: #008000;color: #B83A24;">False</span>, diffopts=<span style="color: #008000;color: #B83A24;">None</span>,
                                   mapfile=<span style="color: #008000;color: #B83A24;">None</span>,  buffered=<span style="color: #008000;color: #B83A24;">False</span><span style="color: black;color: #729AE3;">&#41;</span></pre></div></div>

<p>While the mercurial 1.1 version would look like:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;color: #111;">t = cmdutil.<span style="color: black;color: #517656">changeset_templater</span><span style="color: black;color: #729AE3;">&#40;</span>ui=ui, repo=repo,
                                   patch=<span style="color: #008000;color: #B83A24;">False</span>, mapfile=<span style="color: #008000;color: #B83A24;">None</span>,
                                   buffered=<span style="color: #008000;color: #B83A24;">False</span><span style="color: black;color: #729AE3;">&#41;</span></pre></div></div>

<p>Thanks for letting me know. I think I will update the main article with the 1.2 version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://stolennotebook.com/anthony/2009/03/30/simple-twitter-mercurial-hook/comment-page-1/#comment-36</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Sat, 25 Apr 2009 19:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.stolennotebook.com/anthony/?p=33#comment-36</guid>
		<description>Thanks for the script, it looks good, but I&#039;m having a problem. I got the following message back:

error: incoming.notify hook raised an exception: __init__() takes exactly 7 non-keyword arguments (4 given)

I&#039;m really not sure where the issue would be as I&#039;m not given any trace (do you know how to get a trace?) and I don&#039;t know how to debug without doing another commit (which is fine...). Anyway, I thought you might have some ideas?

My setup is as follows:

Python 2.4.4
Mercurial - 1.2.1
SimpleJSON 2.0.9
Python Twitter 0.5

Thanks for your help,
Charlie</description>
		<content:encoded><![CDATA[<p>Thanks for the script, it looks good, but I&#8217;m having a problem. I got the following message back:</p>
<p>error: incoming.notify hook raised an exception: __init__() takes exactly 7 non-keyword arguments (4 given)</p>
<p>I&#8217;m really not sure where the issue would be as I&#8217;m not given any trace (do you know how to get a trace?) and I don&#8217;t know how to debug without doing another commit (which is fine&#8230;). Anyway, I thought you might have some ideas?</p>
<p>My setup is as follows:</p>
<p>Python 2.4.4<br />
Mercurial &#8211; 1.2.1<br />
SimpleJSON 2.0.9<br />
Python Twitter 0.5</p>
<p>Thanks for your help,<br />
Charlie</p>
]]></content:encoded>
	</item>
</channel>
</rss>
