Differences between revisions 1 and 2
Revision 1 as of 2012-12-15 09:41:46
Size: 1290
Editor: 85-15-45-38
Comment:
Revision 2 as of 2012-12-17 01:34:39
Size: 1298
Editor: rcl
Comment: fix grammar and style consistency
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
This is in fact a in-process hook for notifying developers of the project about server activity by using jabber (XMPP) messaging protocol. This is in fact an in-process hook for notifying developers of the project about server activity by using the Jabber (XMPP) messaging protocol.
Line 12: Line 12:
''Author: '' ''Kamyar Inanloo'' ''Author:'' ''Kamyar Inanloo''
Line 14: Line 14:
Repository: ''https://bitbucket.org/kamyar1979/hgxmpp'' ''Repository'': https://bitbucket.org/kamyar1979/hgxmpp
Line 16: Line 16:
Web page: ''https://bitbucket.org/kamyar1979/hgxmpp'' ''Web page'': https://bitbucket.org/kamyar1979/hgxmpp
Line 19: Line 19:

This is a tiny python package working as a mercurial in-process hook. It works using xmpppy package for sending messages to developers (jabber users) when one pushed/commits/... the project. You must install xmpppy as a requirement:
This is a tiny Python package working as a Mercurial in-process hook. It works using xmpppy package for sending messages to developers (Jabber users) when one pushes/commits/... the project. You must install xmpppy as a requirement:
Line 46: Line 45:
The last line tells the extension to send notification to user1 and user2 when the repository MyProject changes. The last line tells the extension to send notification to `user1` and `user2` when the repository `MyProject` changes.

Mercurial Jabber notification extension

This is in fact an in-process hook for notifying developers of the project about server activity by using the Jabber (XMPP) messaging protocol.

1. Status

This extension is not distributed with Mercurial.

Author: Kamyar Inanloo

Repository: https://bitbucket.org/kamyar1979/hgxmpp

Web page: https://bitbucket.org/kamyar1979/hgxmpp

2. Overview

This is a tiny Python package working as a Mercurial in-process hook. It works using xmpppy package for sending messages to developers (Jabber users) when one pushes/commits/... the project. You must install xmpppy as a requirement:

pip install xmpppy

or

easy_install xmpppy

Then extract the extension to Python package folder (e.g. site-packages)

3. Configuration

Configure your .hgrc to enable the extension by adding following lines:

[hooks]
changegroup = python:hgxmpp.hook

[jabber]
userid = mercurial@mydomain.com
password = mercurialpassword
MyProject = user1@mydomain.com, user2@mydomian.com

The last line tells the extension to send notification to user1 and user2 when the repository MyProject changes.


CategoryExtensionsByOthers

HgJabberExtension (last edited 2012-12-17 01:40:58 by rcl)