From: Neil Date: Sun, 11 Nov 2012 11:36:30 +0000 (+0200) Subject: Bugfixing X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=eed1855ce2bfc51ab77febfc015a1558de4395bb;p=bzrirker.git Bugfixing --- diff --git a/__init__.py b/__init__.py index ebbe6c7..c775f51 100644 --- a/__init__.py +++ b/__init__.py @@ -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(): diff --git a/irkerhook.py b/irkerhook.py index 7e59a6e..823ce52 100644 --- a/irkerhook.py +++ b/irkerhook.py @@ -106,7 +106,7 @@ class IrkerSender(object): 'cyan': '\x0310', 'reset': '\x0F', } - return colours + return colours.iteritems() def project(self): project = self.config.get('irker_project')