From a1f4d766db14d6930af6876bd5996e6dc2c494cf Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 2 Oct 2012 22:13:35 +0200 Subject: [PATCH] Bug fix: give the extractor object explicitly to ship(). --- irkerhook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irkerhook.py b/irkerhook.py index d8b0719..760ae97 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -339,7 +339,7 @@ def hg_hook(ui, repo, _hooktype, node=None, _url=None, **_kwds): extractor = HgExtractor([(ui, repo, node)]) ship(extractor) -def ship(commit, debug): +def ship(extractor, commit, debug): "Ship a notification for the sspecified commit." metadata = extractor.commit_factory(commit) # Message reduction. The assumption here is that IRC can't handle @@ -417,6 +417,6 @@ if __name__ == "__main__": commits = [extractor.head()] for commit in commits: - ship(commit, not notify) + ship(extractor, commit, not notify) #End -- 2.26.2