From: Georg Brandl Date: Tue, 2 Oct 2012 20:13:35 +0000 (+0200) Subject: Bug fix: give the extractor object explicitly to ship(). X-Git-Tag: 1.5~16^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1f4d766db14d6930af6876bd5996e6dc2c494cf;p=irker.git Bug fix: give the extractor object explicitly to ship(). --- 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