Only run on post_commit
authorUnit 193 <unit193@ubuntu.com>
Fri, 18 Sep 2015 14:43:12 +0000 (10:43 -0400)
committerUnit 193 <unit193@ubuntu.com>
Fri, 18 Sep 2015 14:43:12 +0000 (10:43 -0400)
By default this plugin will run for any bzr action you take, this isn't ideal
as it means that branching will spam a channel with the history of the branch.
http://doc.bazaar.canonical.com/beta/en/user-reference/hooks-help.html#post-change-branch-tip

__init__.py

index 1bc1f346db2149cd4af103bf79b1f6e24234f94b..448e24ac4be48df7de5a9fbbacd83eeb83e484c2 100644 (file)
@@ -67,4 +67,4 @@ option_registry.register_lazy("irker_port",
 
 from bzrlib.hooks import install_lazy_named_hook
 install_lazy_named_hook("bzrlib.branch", "Branch.hooks",
 
 from bzrlib.hooks import install_lazy_named_hook
 install_lazy_named_hook("bzrlib.branch", "Branch.hooks",
-        'post_change_branch_tip', branch_post_change_hook, 'bzr-irker')
+        'post_commit', branch_post_change_hook, 'bzr-irker')