Error on fast-export

Bug #2024315 reported by void-spark
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description


I'm getting the following error:

16:14:21 Starting export of 1355 revisions ...
brz: ERROR: KeyError: b'null:'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/", line 1036, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/breezy/", line 1228, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python3/dist-packages/breezy/", line 779, in run_argv_aliases
  File "/usr/lib/python3/dist-packages/breezy/", line 804, in run
    return class_run(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/breezy/plugins/fastimport/", line 505, in run
  File "/usr/lib/python3/dist-packages/breezy/plugins/fastimport/", line 267, in run
  File "/usr/lib/python3/dist-packages/breezy/plugins/fastimport/", line 256, in emit_commits
    self.emit_commit(revobj, self.ref, trees[parent], trees[revid])
KeyError: b'null:'

brz 3.3.2 on python 3.11.2 (Linux-6.3.5-2-MANJARO-x86_64-with-glibc2.36)
arguments: ['bzr', 'fast-export', '--marks=./import/marks.bzr', '--git-
    branch=toykeeper', '../upstream/']
plugins: bash_completion[3.3.2], changelog_merge[3.3.2],
    commitfromnews[3.3.2], cvs[3.3.2], darcs[3.3.2], email[3.3.2],
    fastimport[3.3.2], flake8[unknown], fossil[3.3.2], github[3.3.2],
    gitlab[3.3.2], hg[3.3.2], launchpad[3.3.2], mtn[3.3.2],
    netrc_credential_store[3.3.2], news_merge[3.3.2], po_merge[3.3.2],
    propose[3.3.2], pypi[3.3.2], quilt[unknown], repodebug[3.3.2],
    rewrite[unknown], stats[3.3.2], svn[3.3.2], upload[3.3.2],
    weave_fmt[3.3.2], webdav[3.3.2], zsh_completion[3.3.2]
encoding: 'ascii', fsenc: 'ascii', lang: None

*** Breezy has encountered an internal error. This probably indicates a
    bug in Breezy. You can help us fix it by filing a bug report at
    including this traceback and a description of the problem.

The script that generates this is:
docker run -it --rm -v `pwd`/update:/root/update -w /root/update debian:bookworm bash -c "\
rm -rf upstream && \
rm -rf anduril2 && \
apt update && \
apt -y upgrade && \
apt -y install bzr-fastimport git && \
git clone && \
mkdir upstream && \
cd upstream && \
bzr branch lp:~toykeeper/flashlight-firmware/anduril2 && \
mv anduril2 && \
bzr branch lp:~gabe/flashlight-firmware/anduril2 && \
mv anduril2 anduril2.gabe && \
cd .. && \
cd anduril2 && \
git remote set-url origin <email address hidden>:void-spark/anduril2.git && \
bzr fast-export --marks=./import/marks.bzr --git-branch=toykeeper ../upstream/ | \
git fast-import --import-marks=./import/marks.git --export-marks=./import/marks.git && \
bzr fast-export --marks=./import/marks.bzr --git-branch=gabe ../upstream/anduril2.gabe | \
git fast-import --import-marks=./import/marks.git --export-marks=./import/marks.git && \
sort ./import/marks.bzr -n -k 1.2 -o ./import/marks.bzr"

I'm not sure how to reproduce it in a smaller example, I hope the stack trace gives enough information

Revision history for this message
void-spark (void-spark) wrote :

Looks like this has been around for a while:

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.