# lazy_import so that it doesn't get loaded if it isn't used
# Approach borrowed from bzr-email
lazy_import(globals(), """\
-from bzrlib.plugins.irkerhook import irkerhook as _irkerhook
+from bzrlib.plugins.bzrirker import irkerhook as _irkerhook
""")
def test_suite():
from unittest import TestSuite
- import bzrlib.plugins.irkerhook.tests
+ import bzrlib.plugins.bzrirker.tests
result = TestSuite()
- result.addTest(bzrlib.plugins.irkerhook.tests.test_suite())
+ result.addTest(bzrlib.plugins.bzrirker.tests.test_suite())
return result
option_registry.register_lazy("irker_channels",
- "bzrlib.plugins.irkerhook.irkerhook", "opt_irker_channels")
+ "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_channels")
option_registry.register_lazy("irker_colours",
- "bzrlib.plugins.irkerhook.irkerhook", "opt_irker_colours")
+ "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_colours")
option_registry.register_lazy("irker_url",
- "bzrlib.plugins.irkerhook.irkerhook", "opt_irker_url")
+ "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_url")
+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',
help='Channel(s) to post commit messages to.')
opt_irker_colours = Option('irker_colours',
help='Colour option for irker.')
+opt_irker_project = Option('irker_project',
+ help='Project name to use.')
long_description="""
Hooks into Bazaar and sends commit notification messages via irker.
""",
- package_dir={'bzrlib.plugins.irkerhook':'.',
- 'bzrlib.plugins.irkerhook.tests':'tests'},
- packages=['bzrlib.plugins.irkerhook',
- 'bzrlib.plugins.irkerhook.tests']
+ package_dir={'bzrlib.plugins.bzrirker':'.',
+ 'bzrlib.plugins.bzrirker.tests':'tests'},
+ packages=['bzrlib.plugins.bzrirker',
+ 'bzrlib.plugins.bzrirker.tests']
)