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.
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): package. py", line 1098, in <module> download_ cache=options. persistent_ download_ cache)) package. py", line 1002, in main transports= possible_ transports) package. py", line 642, in find_unimported _versions transports= possible_ transports) transports= possible_ transports, readonly=readonly) bzrdir. sprout( local_location) andrew/ code/bzr/ bzrlib/ controldir. py", line 375, in sprout tree_if_ local=create_ tree_if_ local) andrew/ code/bzr/ bzrlib/ cleanup. py", line 131, in run andrew/ code/bzr/ bzrlib/ cleanup. py", line 165, in _do_with_cleanups andrew/ code/bzr/ bzrlib/ controldir. py", line 416, in _sprout repo.fetch( source_ repository, fetch_spec= fetch_spec) andrew/ code/bzr/ bzrlib/ repository. py", line 1790, in fetch ghosts= find_ghosts, fetch_spec= fetch_spec) andrew/ code/bzr/ bzrlib/ decorators. py", line 194, in write_locked andrew/ code/bzr/ bzrlib/ repository. py", line 3514, in fetch ghosts= find_ghosts) andrew/ code/bzr/ bzrlib/ fetch.py" , line 76, in __init__ andrew/ code/bzr/ bzrlib/ fetch.py" , line 103, in __fetch _fetch_ everything_ for_search( search_ result) andrew/ code/bzr/ bzrlib/ fetch.py" , line 131, in _fetch_ everything_ for_search andrew/ code/bzr/ bzrlib/ repository. py", line 4243, in insert_stream repo.commit_ write_group( ) andrew/ code/bzr/ bzrlib/ repository. py", line 1652, in commit_write_group write_group( ) andrew/ code/bzr/ bzrlib/ repofmt/ pack_repo. py", line 2333, in _commit_write_group collection. _commit_ write_group( ) andrew/ code/bzr/ bzrlib/ repofmt/ pack_repo. py", line 2171, in _commit_write_group errors. BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing referenced chk root keys: [StaticTuple( 'sha1:53f99dc4d d7e3d7d3ed9f26f 6994c9b6c855468 1',)]
File "./import_
persistent_
File "./import_
revid_db, bstore, possible_
File "./import_
possible_
File "./icommon.py", line 1339, in get_branch
possible_
File "./icommon.py", line 1503, in get_branch_parts
dir = br_from.
File "/home/
create_
File "/home/
self.cleanups, self.func, self, *args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
result_
File "/home/
find_
File "/home/
result = unbound(self, *args, **kwargs)
File "/home/
find_
File "/home/
self.__fetch()
File "/home/
self.
File "/home/
stream, from_format, [])
File "/home/
hint = self.target_
File "/home/
result = self._commit_
File "/home/
hint = self._pack_
File "/home/
"Cannot add revision(s) to repository: " + problems_summary)
bzrlib.
This is with current versions of lp:udd (plus a small hack to workaround bug 718569) and lp:bzr.