bzr commit e-mail fails with bzr 2.4.x and 2.5.x on Fedora Core 14
Vincent Ladeuil
vila+bzr at canonical.com
Wed May 16 09:49:46 UTC 2012
>>>>> Gaiseric Vandal <gaiseric.vandal at gmail.com> writes:
> I am running Fedora Core 14 (X64.) I have uninstalled bzr 2.2.x
> packages. I have installed bzr 2.5.0 and bzr 2.5.0 from source I have
> also tried with bzr 2.6.B1 and bzr 2.4.2 + bzr plugins 2.4.1 .
mail on commits didn't change for ages so all versions above should
work.
> I want to enable commit e-mails. I have been trying to get this to work
> over the network (bzr+ssh or sftp) but with out luck. I have therefore
> created a local repository on my computer.
> /home/myname/bzr/localrepo/localrepo1
> which I have now checked out to
> /home/myname/bzr/workspace/localrepo1
This is what I use:
in ~/.bazaar/bazaar.conf:
[DEFAULT]
smtp_server = localhost
post_commit_mailer = smtplib
Note that 'smtp_server' reflects my local setup, use whatever is
appropriate for you (an smtp server replying on the default 25 port or
use stmp_server=host:port if you use a non-standard port).
in ~/.bazaar/locations.conf:
[/home/vila/src/bzr]
post_commit_to = bazaar-commits at lists.canonical.com
This instruct bzr to send an email to 'post_commit_to' when a commit
occurs in '/home/vila/src/bzr' to the appropriate mailing list.
Note that this applies to all branches below src/bzr and that it applies
to branches, not working trees, so in your case you probably want to
define a section for '/home/myname/bzr/localrepo/localrepo1'
-> bzr plugins
> bash_completion 2.4.2
> Generate a shell function for bash command line completion.
> bzrtools 2.4.1
> Various useful commands for working with bzr.
You need the lp:bzr-email plugin:
mkdir -p ~/.bazaar/plugins
cd ~/.bazaar/plugins
bzr branch lp:bzr-email email
will install it in the right place, you can check it with:
bzr plugins -v
<snip/>
-> bzr selftest email
<snip/>
> ----------------------------------------------------------------------
> Ran 20 tests in 1.373s
> OK
Those tests doesn't include *sending* emails ('bzr selftest --list email'
will make it a tiny bit clearer and will change once the plugin is
installed).
Hth,
Vincent
More information about the bazaar
mailing list