Comment 2 for bug 393037

Revision history for this message
Martitza (martitzam) wrote :

I am also seeing this problem. This is my first time trying to set up bzr-email-notifier, so I could be making a silly mistake.

Environment: Ubuntu Jaunty
Python 2.6.2
Cheetah 2.0.1-2ubuntu3
bzr 2.0.0-1~bazaar~jaunty

My bzr repos and branches are stored in subdirectories of ~/Projects.
(My ~/Projects is *not* a shared repo, just an ordinary directory.)

Here is my example.conf, where everything in <angle brackets> has actually been replaced with valid data, including email addresses and passwords with all necessary permissions.

[DEFAULT]
state-file=last-emailed-revisions.txt
update-working-tree=False
pull-from-parent=False
to=<email_1 redacted for security>
from=<email_2 redacted for security>

[smtp]
server=<smtp_server redacted for security>
user=<user redacted for security>
password=<password redacted for security>

[commits]
to=<email_1 redacted for security>
from=$revision.committer
subject=$relative_path: $revision_number $summary
body=templates/plain/commit-message.txt
diff-line-limit=0

[template-settings]
branch_base=~/Projects

Note that diff-line-limit=0 as suggested elsewhere in this thread, and when I run

./bzr_email_notifier.py -v -c example.conf ~/Projects/

as myself (the owner of the bzr branches) I get

No handlers could be found for logger "bzr"
No 'new-branches' section in configuration - emails won't be sent when new branches are created
No 'removed-branches' section in configuration - emails won't be sent when branches are deleted

The last two messages are expected for my config file. The first message is not expected. I have run bzr break-locks on all of my branches. No problems found.