Bug fix: give the extractor object explicitly to ship().
authorGeorg Brandl <georg@python.org>
Tue, 2 Oct 2012 20:13:35 +0000 (22:13 +0200)
committerGeorg Brandl <georg@python.org>
Tue, 2 Oct 2012 20:13:35 +0000 (22:13 +0200)
irkerhook.py

index d8b0719b638f7f6d0b5486ead044e4c1265763b6..760ae97cf5ba4c549c0045635e9a2d66a788fb5d 100755 (executable)
@@ -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