X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=__init__.py;h=6c3f2687ec9fb13d93f8ad2f08ed8905a2a592bf;hb=3ad4340dea8ee06a11c02d89c5847c516cfc5862;hp=9bb0c566c210744c298182b57166bea3719a4324;hpb=0c567ce7b9108ddfb90f67df6745453991fa4fde;p=bzrirker.git diff --git a/__init__.py b/__init__.py index 9bb0c56..6c3f268 100644 --- a/__init__.py +++ b/__init__.py @@ -4,7 +4,16 @@ # GPL 2+ - see COPYING for details """Sending irker notifications for commits and branch changes. -Details to follow +This will talk to an irkerd (currently assumed to be running on localhost) +and post commit logs. + +Useful configuration settings: + irker_project - The name of the project used in announcements + irker_channels - The irc channels to post announcements to + irker_colours - Settings for using colours in the announcements (ANSI or + mIRC) + irker_server - Host for the irkerd server (localhost by default) + irker_port - port to connect to (6659 by default) """ from bzrlib.config import option_registry @@ -17,7 +26,6 @@ from bzrlib.plugins.bzrirker import irkerhook as _irkerhook """) - def branch_commit_hook(local, master, old_revno, old_revid, new_revno, new_revid): """This is the post_commit hook that runs after commit.""" @@ -50,10 +58,12 @@ option_registry.register_lazy("irker_channels", "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_channels") option_registry.register_lazy("irker_colours", "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_colours") -option_registry.register_lazy("irker_url", - "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_url") option_registry.register_lazy("irker_project", "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_project") +option_registry.register_lazy("irker_server", + "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_server") +option_registry.register_lazy("irker_port", + "bzrlib.plugins.bzrirker.irkerhook", "opt_irker_port") from bzrlib.hooks import install_lazy_named_hook # This causes double commit messages - investigate what we need further