Comment 0 for bug 718723

Revision history for this message
David I (david-ingamells) wrote : Crash with bzr merge with stacked branch using 2.3.0: bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Cannot add revision(s) to repository: missing referenced chk root keys

I'm getting a problem using bzr 2.3.0 with the sequence

bzr branch --stacked <patch file>
bzr merge <patch file>

while the same sequence works if I leave out the --stacked.
I shall also submit a bug report.

Here is the log (path names changed to <path> to protect the innocent)

*$ bzr branch --verbose --stacked bzr+ssh://<path>*
Created new stacked branch referring to bzr+ssh://<path>/.
 ---> returned status 0

*$ bzr merge --verbose /<path>/13624.patch*
bzr: failed to report crash using apport:
     AssertionError()
bzr: ERROR: bzrlib.errors.BzrCheckError: Internal check failed: Cannot
add revision(s) to repository: missing referenced chk root keys:
[StaticTuple('sha1:df4b7cbb9c4c3ce0ac641265711eb07b0a194741',)]

Traceback (most recent call last):
  File "/<path>/lib/python/bzrlib/commands.py", line 923, in
exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/<path>/lib/python/bzrlib/commands.py", line 1123, in run_bzr
    ret = run(*run_argv)
  File "<path>/lib/python/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/<path>/lib/python/bzrlib/commands.py", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/<path>/lib/python/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/<path>/lib/python/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/<path>/lib/python/bzrlib/builtins.py", line 3930, in run
    mergeable, None)
  File "/<path>/lib/python/bzrlib/merge.py", line 368, in from_mergeable
    mergeable.install_revisions(tree.branch.repository)
  File "/<path>/lib/python/bzrlib/merge_directive.py", line 278, in
install_revisions
    info.install_revisions(target_repo, stream_input=False)
  File "/<path>/lib/python/bzrlib/bundle/serializer/v4.py", line 471, in
install_revisions
    return ri.install()
  File "/<path>/lib/python/bzrlib/bundle/serializer/v4.py", line 543, in
install
    self._repository.commit_write_group()
  File "/<path>/lib/python/bzrlib/repository.py", line 1640, in
commit_write_group
    result = self._commit_write_group()
  File "/<path>/lib/python/bzrlib/repofmt/pack_repo.py", line 2333, in
_commit_write_group
    hint = self._pack_collection._commit_write_group()
  File "/<path>/lib/python/bzrlib/repofmt/pack_repo.py", line 2171, in
_commit_write_group
    "Cannot add revision(s) to repository: " + problems_summary)
BzrCheckError: Internal check failed: Cannot add revision(s) to
repository: missing referenced chk root keys:
[StaticTuple('sha1:df4b7cbb9c4c3ce0ac641265711eb07b0a194741',)]

bzr 2.3.0 on python 2.5.2
(Linux-2.6.24-22-generic-i686-with-debian-lenny-sid)
arguments: ['/<path>/bin/bzr', 'merge', '--verbose', '/<path>/13624.patch']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
plugins:
  bash_completion /<path>/python/bzrlib/plugins/bash_completion [2.3.0]
  bzrtools /<path>/lib/python/bzrlib/plugins/bzrtools [2.3.0]
  explorer /<path>/lib/python/bzrlib/plugins/explorer [1.1.2]
  extmerge /<path>/lib/python/bzrlib/plugins/extmerge [unknown]
  gtk
/usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /<path>/lib/python/bzrlib/plugins/launchpad [2.3.0]
  netrc_credential_store
/<path>/lib/python/bzrlib/plugins/netrc_credential_store [2.3.0]
  news_merge /<path>/lib/python/bzrlib/plugins/news_merge [2.3.0]
  qbzr /<path>/lib/python/bzrlib/plugins/qbzr [0.20.0]

*** 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.

---> returned status 4