projects
/
irker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa61a7f
)
Bug fix: give the extractor object explicitly to ship().
author
Georg Brandl
<georg@python.org>
Tue, 2 Oct 2012 20:13:35 +0000
(22:13 +0200)
committer
Georg Brandl
<georg@python.org>
Tue, 2 Oct 2012 20:13:35 +0000
(22:13 +0200)
irkerhook.py
patch
|
blob
|
history
diff --git
a/irkerhook.py
b/irkerhook.py
index d8b0719b638f7f6d0b5486ead044e4c1265763b6..760ae97cf5ba4c549c0045635e9a2d66a788fb5d 100755
(executable)
--- 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