Work-around double commit message
[bzrirker.git] / __init__.py
index ebbe6c775a2686cdc5e25ec509f7d2453b1b41f5..9bb0c566c210744c298182b57166bea3719a4324 100644 (file)
@@ -33,9 +33,9 @@ def branch_post_change_hook(params):
     """This is the post_change_branch_tip hook."""
     # (branch, old_revno, new_revno, old_revid, new_revid)
     br = params.branch
-    revs = br.revision_history()[params.old_revno:params.new_revno]
+    revs = br._revision_history()[params.old_revno:params.new_revno]
     for rev_id in revs:
-        _irker.IrkerSender(br, rev_id, br.get_config_stack()).send()
+        _irkerhook.IrkerSender(br, rev_id, br.get_config_stack()).send()
 
 
 def test_suite():
@@ -56,7 +56,8 @@ option_registry.register_lazy("irker_project",
     "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_project")
 
 from bzrlib.hooks import install_lazy_named_hook
-install_lazy_named_hook("bzrlib.branch", "Branch.hooks", 'post_commit',
-        branch_commit_hook, 'bzr-irker')
+# This causes double commit messages - investigate what we need further
+#install_lazy_named_hook("bzrlib.branch", "Branch.hooks", 'post_commit',
+#        branch_commit_hook, 'bzr-irker')
 install_lazy_named_hook("bzrlib.branch", "Branch.hooks",
         'post_change_branch_tip', branch_post_change_hook, 'bzr-irker')