From: Unit 193 Date: Fri, 18 Sep 2015 14:43:12 +0000 (-0400) Subject: Only run on post_commit X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=e4e9850ea3fe7998551244aadfb6deeec9c5b8d5;p=bzrirker.git Only run on post_commit 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 --- diff --git a/__init__.py b/__init__.py index 1bc1f34..448e24a 100644 --- a/__init__.py +++ b/__init__.py @@ -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", - 'post_change_branch_tip', branch_post_change_hook, 'bzr-irker') + 'post_commit', branch_post_change_hook, 'bzr-irker')