On 05/31/2017 10:16 AM, Martin Owens wrote:
If there's any issues with the fast-import or export, I've bashed the code a bit, so do let us know and we might be able to help.
I started down that route, unfortunately it is way before that in the repository itself. There seems to be a missing link inside the Bazaar repo. I finally ended up with this being the minimum needed to recreate:
$ bzr branch lp:~inkscape.dev/inkscape/RELEASE_0_44_BRANCH bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit ('spellipse.cpp-20091128124040-aej0x7yhxng1m6ly-3465',) corrupt: line 'njh@...3538... line-delta 12021 197 1 ': Parent index refers to a revision which does not exist yet. 1 > 1
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code return the_callable(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr ret = run(*run_argv) File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases return self.run(**all_cmd_args) File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run return self._operation.run_simple(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple self.cleanups, self.func, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups result = func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1507, in run source_branch=br_from) File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 367, in sprout create_tree_if_local=create_tree_if_local) File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 132, in run self.cleanups, self.func, self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups result = func(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 417, in _sprout result_repo.fetch(source_repository, fetch_spec=fetch_spec) File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1268, in fetch find_ghosts=find_ghosts, fetch_spec=fetch_spec) File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 218, in write_locked result = unbound(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 2585, in fetch find_ghosts=find_ghosts) File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 77, in __init__ self.__fetch() File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 104, in __fetch self._fetch_everything_for_search(search_result) File "/usr/lib/python2.7/dist-packages/bzrlib/fetch.py", line 132, in _fetch_everything_for_search stream, from_format, []) File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 2043, in insert_stream src_format, is_resume) File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 2107, in insert_stream_without_locking self.target_repo.texts.insert_record_stream(substream) File "/usr/lib/python2.7/dist-packages/bzrlib/knit.py", line 1591, in insert_record_stream for record in stream: File "/usr/lib/python2.7/dist-packages/bzrlib/knit.py", line 1398, in get_record_stream ordering, include_delta_closure): File "/usr/lib/python2.7/dist-packages/bzrlib/knit.py", line 1411, in _get_remaining_record_stream build_details = self._index.get_build_details(keys) File "/usr/lib/python2.7/dist-packages/bzrlib/knit.py", line 2540, in get_build_details parent_map = self.get_parent_map(keys) File "/usr/lib/python2.7/dist-packages/bzrlib/knit.py", line 2617, in get_parent_map self._load_prefixes(prefixes) File "/usr/lib/python2.7/dist-packages/bzrlib/knit.py", line 2692, in _load_prefixes _load_data(self, fp) File "bzrlib/_knit_load_data_pyx.pyx", line 304, in bzrlib._knit_load_data_pyx._load_data_c (bzrlib/_knit_load_data_pyx.c:3006) File "bzrlib/_knit_load_data_pyx.pyx", line 298, in bzrlib._knit_load_data_pyx.KnitIndexReader.read (bzrlib/_knit_load_data_pyx.c:2860) File "bzrlib/_knit_load_data_pyx.pyx", line 274, in bzrlib._knit_load_data_pyx.KnitIndexReader.process_next_record (bzrlib/_knit_load_data_pyx.c:2667) File "bzrlib/_knit_load_data_pyx.pyx", line 229, in bzrlib._knit_load_data_pyx.KnitIndexReader.process_one_record (bzrlib/_knit_load_data_pyx.c:2312) KnitCorrupt: Knit ('spellipse.cpp-20091128124040-aej0x7yhxng1m6ly-3465',) corrupt: line 'njh@...3538... line-delta 12021 197 1 ': Parent index refers to a revision which does not exist yet. 1 > 1
bzr 2.8.0dev1 on python 2.7.13 (Linux-4.11.0-3-generic-x86_64-with- Ubuntu-17.04-zesty) arguments: ['/usr/bin/bzr', 'branch', 'lp:~inkscape.dev/inkscape/RELEASE_0_44_BRANCH'] plugins: bash_completion[2.8.0dev1], changelog_merge[2.8.0dev1], grep[2.8.0dev1], launchpad[2.8.0dev1], netrc_credential_store[2.8.0dev1], news_merge[2.8.0dev1], po_merge[2.8.0dev1], weave_fmt[2.8.0dev1] encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
*** Bazaar has encountered an internal error. This probably indicates a bug in Bazaar. You can help us fix it by filing a bug report at https://bugs.launchpad.net/bzr/+filebug including this traceback and a description of the problem.
Ted