Comment 28 for bug 653307

Revision history for this message
Andrew Bennetts (spiv) wrote :

Ok, I can finally reproduce this locally, even with trunk lp:bzr (as well the old 2.1.1 that was being used). This command:

  ./import_package.py --persistent-download-cache --local-branches dsdo

gives me this traceback:

Traceback (most recent call last):
  File "./import_package.py", line 1098, in <module>
    persistent_download_cache=options.persistent_download_cache))
  File "./import_package.py", line 1002, in main
    revid_db, bstore, possible_transports=possible_transports)
  File "./import_package.py", line 642, in find_unimported_versions
    possible_transports=possible_transports)
  File "./icommon.py", line 1339, in get_branch
    possible_transports=possible_transports, readonly=readonly)
  File "./icommon.py", line 1503, in get_branch_parts
    dir = br_from.bzrdir.sprout(local_location)
  File "/home/andrew/code/bzr/bzrlib/controldir.py", line 375, in sprout
    create_tree_if_local=create_tree_if_local)
  File "/home/andrew/code/bzr/bzrlib/cleanup.py", line 131, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/controldir.py", line 416, in _sprout
    result_repo.fetch(source_repository, fetch_spec=fetch_spec)
  File "/home/andrew/code/bzr/bzrlib/repository.py", line 1790, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/home/andrew/code/bzr/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/andrew/code/bzr/bzrlib/repository.py", line 3514, in fetch
    find_ghosts=find_ghosts)
  File "/home/andrew/code/bzr/bzrlib/fetch.py", line 76, in __init__
    self.__fetch()
  File "/home/andrew/code/bzr/bzrlib/fetch.py", line 103, in __fetch
    self._fetch_everything_for_search(search_result)
  File "/home/andrew/code/bzr/bzrlib/fetch.py", line 131, in _fetch_everything_for_search
    stream, from_format, [])
  File "/home/andrew/code/bzr/bzrlib/repository.py", line 4243, in insert_stream
    hint = self.target_repo.commit_write_group()
  File "/home/andrew/code/bzr/bzrlib/repository.py", line 1652, in commit_write_group
    result = self._commit_write_group()
  File "/home/andrew/code/bzr/bzrlib/repofmt/pack_repo.py", line 2333, in _commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/home/andrew/code/bzr/bzrlib/repofmt/pack_repo.py", line 2171, in _commit_write_group
    "Cannot add revision(s) to repository: " + problems_summary)
bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing referenced chk root keys: [StaticTuple('sha1:53f99dc4dd7e3d7d3ed9f26f6994c9b6c8554681',)]

This is with current versions of lp:udd (plus a small hack to workaround bug 718569) and lp:bzr.