Ran into this again today on debian bookworm. Seems it can't find a key which comes from a constant breezy.revision.NULL_REVISION. The actual trees map is empty. Bit of logging/debugging:
16:34:35 Calculating the revisions to include ...
16:34:35 Starting export of 1355 revisions ...
16:34:35 PARENT A
16:34:35 REVOBJ
16:34:35 <Revision id <email address hidden>'>
16:34:35 SELF
16:34:35 b'refs/heads/toykeeper'
16:34:35 parent
16:34:35 b'null:'
16:34:35 trees
16:34:35 {}
brz: ERROR: KeyError: b'null:'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1036, in exception_to_return_code
return the_callable(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1228, in run_bzr
ret = run(*run_argv) ^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 779, in run_argv_aliases
return self.run(**all_cmd_args) ^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/breezy/commands.py", line 804, in run
return class_run(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/breezy/plugins/fastimport/cmds.py", line 505, in run
return exporter.run() ^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/breezy/plugins/fastimport/exporter.py", line 277, in run
self.emit_commits(interesting)
File "/usr/lib/python3/dist-packages/breezy/plugins/fastimport/exporter.py", line 266, in emit_commits
self.emit_commit(revobj, self.ref, trees[parent], trees[revid]) ~~~~~^^^^^^^^
KeyError: b'null:'
I used to get around it by using a very old version on debian buster, but for some reason buster takes forever to build it's python packages or something now..
Ran into this again today on debian bookworm. Seems it can't find a key which comes from a constant breezy. revision. NULL_REVISION. The actual trees map is empty. Bit of logging/debugging:
for revid in chunk:
revobj = history[revid] parent_ ids) == 0:
self. note("PARENT A")
parent = breezy. revision. NULL_REVISION
else:
self. note("PARENT B")
parent = revobj. parent_ ids[0]
self. note("REVOBJ" )
self. note(revobj)
self. note("SELF" )
self. note(self. ref)
self. note("parent" )
self. note(parent)
self. note("trees" )
self. note(trees)
self. emit_commit( revobj, self.ref, trees[parent], trees[revid])
if len(revobj.
16:34:35 Calculating the revisions to include ... heads/toykeeper '
16:34:35 Starting export of 1355 revisions ...
16:34:35 PARENT A
16:34:35 REVOBJ
16:34:35 <Revision id <email address hidden>'>
16:34:35 SELF
16:34:35 b'refs/
16:34:35 parent
16:34:35 b'null:'
16:34:35 trees
16:34:35 {}
brz: ERROR: KeyError: b'null:'
Traceback (most recent call last): python3/ dist-packages/ breezy/ commands. py", line 1036, in exception_ to_return_ code
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^ python3/ dist-packages/ breezy/ commands. py", line 1228, in run_bzr
^^^^ ^^^^^^^ ^^^ python3/ dist-packages/ breezy/ commands. py", line 779, in run_argv_aliases **all_cmd_ args)
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ python3/ dist-packages/ breezy/ commands. py", line 804, in run
^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^ python3/ dist-packages/ breezy/ plugins/ fastimport/ cmds.py" , line 505, in run
^^^ ^^^^^^^ ^^^^ python3/ dist-packages/ breezy/ plugins/ fastimport/ exporter. py", line 277, in run emit_commits( interesting) python3/ dist-packages/ breezy/ plugins/ fastimport/ exporter. py", line 266, in emit_commits emit_commit( revobj, self.ref, trees[parent], trees[revid])
~~~ ~~^^^^^ ^^^
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 class_run(*args, **kwargs)
File "/usr/lib/
return exporter.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
KeyError: b'null:'
I used to get around it by using a very old version on debian buster, but for some reason buster takes forever to build it's python packages or something now..