bzr crashed when attempting to merge a Bazaar merge directive format 2 without target_branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned | ||
bzr (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: bzr
When attempting to merge a merge-directive, Bazaar crashes with "TypeError: __init__() takes at least 6 non-keyword arguments (5 given)". This appears to be caused by the merge directive missing a target_branch which is expected by the MergeDirective2 class.
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: <email address hidden>
# testament_sha1: f6ec130f0a3b31b
# timestamp: 2010-11-10 12:35:36 +1100
# base_revision_id: <email address hidden>-\
# mf2vov0kvwdrf5n5
#
# Begin patch
I'm unsure if this is a bug in my version of Bazaar (for crashing when not explicitly given a target_branch) or the other user's version of Bazaar (for not adding a target_branch to the merge request).
ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.1-0ubuntu1
ProcCmdline: /usr/bin/python /usr/bin/bzr merge /tmp/highlight-
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
possible_
File "/usr/lib/
_do_directive)
File "/usr/lib/
return MergeDirective.
File "/usr/lib/
line_iter)
File "/usr/lib/
**kwargs)
TypeError: __init__() takes at least 6 non-keyword arguments (5 given)
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in bzr (Ubuntu): | |
status: | New → Confirmed |
Changed in bzr (Ubuntu): | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
tags: | added: check-for-breezy |
Changed in bzr: | |
status: | Confirmed → Fix Released |
Changed in bzr (Ubuntu): | |
status: | Triaged → Fix Released |
Giving a traceback is certainly a bug. I'm not sure off the top of my head if no target_branch makes the merge directive invalid or not.