From: Georg Brandl Date: Wed, 3 Oct 2012 05:58:20 +0000 (+0200) Subject: Fix the signature of the hg_hook function. X-Git-Tag: 1.6~21^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=75a22dcbb942062658f90e2db9b68cda8da52f46;p=irker.git Fix the signature of the hg_hook function. --- diff --git a/irkerhook.py b/irkerhook.py index 244b65c..6b3aacc 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -343,13 +343,13 @@ class HgExtractor(GenericExtractor): commit.files = ' '.join(st[0] + st[1] + st[2]) return commit -def hg_hook(ui, repo, _hooktype, node=None, _url=None, **_kwds): +def hg_hook(ui, repo, **kwds): # To be called from a Mercurial "commit" or "incoming" hook. Example # configuration: # [hooks] # incoming.irker = python:/path/to/irkerhook.py:hg_hook extractor = HgExtractor([(ui, repo)]) - ship(extractor, node, False) + ship(extractor, kwds['node'], False) extractors = [GitExtractor, SvnExtractor, HgExtractor]