traceback caused by difflimit = 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bzr email commit hook |
Fix Released
|
High
|
James Teh |
Bug Description
Trying to use bzr-email as a post commit hook, I get the following traceback:
[...]
Committed revision 700.
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
author=author)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
result = WorkingTree3.
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
revprops=
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.rev_id)
File "/usr/lib/
local_
File "/usr/lib/
self.send()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
assert isinstance(
AssertionError
bzr 1.5 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'drop some stray files that crept into the debdiff, having been removed upstream\nin a previous revision']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
builddeb /usr/lib/
bzrtools /usr/lib/
cvsps_import /usr/lib/
email /usr/lib/
launchpad /usr/lib/
svn /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
My locations.conf is as follows:
[/home/
email = Steve Langasek <email address hidden>
post_commit_to = <email address hidden>
post_commit_
post_commit_mailer = smtplib
smtp_server=
I was also getting tracebacks before I tried to configure it to use smtplib, I think the traceback was slightly different in that case.
Related branches
- Robert Collins (community): Approve
-
Diff: 50 lines (+14/-8)2 files modified__init__.py (+4/-4)
emailer.py (+10/-4)
Changed in bzr-email: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → James Teh (jteh) |
Changed in bzr-email: | |
status: | Fix Committed → Fix Released |
As requested by James Westby, I've set PDB_BZR=1 in the env and committed again, to check the type of attachment_text:
(Pdb) type(attachment _text)
<type 'NoneType'>
Could it be that I've misunderstood how 'post_commit_ difflimit = 0' is supposed to work?