From 75a22dcbb942062658f90e2db9b68cda8da52f46 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 3 Oct 2012 07:58:20 +0200 Subject: [PATCH] Fix the signature of the hg_hook function. --- irkerhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] -- 2.26.2