Sending commit emails from a central location
Robert Collins
robertc at robertcollins.net
Fri Jun 22 02:17:46 BST 2007
On Thu, 2007-06-21 at 21:41 +0100, Adeodato Simó wrote:
> Hello guys.
>
> I've always liked commit emails for some projects, and bzr-email is not
> really a solution for me, because everybody has to individually
> configure the plugin, etc. I'm told post_commit will one day work on the
> server side, when using bzr+ssh://, but alas, people could still push
> with sftp://.
>
> So I sat down today and wrote a tool to watch branches on the machine
> they're hosted, and send mails from there. This ensures that every
> pushed commit gets an email.
>
> Sending this mail in case this tool is of interest to somebody else. :-)
>
> http://chistera.yi.org/~adeodato/code/bzr/bzr-hookless-email/
>
> P.S.: Code from bzr-email/emailer.py was stolen for this. Maybe it'd be
> nice to have in bzrlib code to generate a "commit email".
A few thoughts..
Firstly, you can reuse bzr-email/emailer.py:
====
from bzrlib.plugins.email import emailer
====
No need to copy code at all.
Secondly, if you configure branch.conf to send email, the email plugin
should send it correctly even if you are committing over sftp to a
central branch.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070622/d8030392/attachment.pgp
More information about the bazaar
mailing list