KeyError exception on 'bzr version'

Bug #1243740 reported by Piotr Kalinowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Git Plugin
Invalid
Undecided
Unassigned

Bug Description

When running 'bzr version' with bzr-git installed (I just pulled the trunk), I get the following:

Bazaar (bzr) 2.6.0
bzr: ERROR: exceptions.KeyError: 'cf1211dfac85ec342a8c5a24cd796d6e5720a289'

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/builtins.py", line 4226, in run
    show_version(to_file=self.outf)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/version.py", line 40, in show_version
    src_tree = _get_bzr_source_tree()
  File "/usr/local/lib/python2.7/site-packages/bzrlib/version.py", line 104, in _get_bzr_source_tree
    return control.open_workingtree(recommend_upgrade=False)
  File "/Users/pitkali/.bazaar/plugins/git/dir.py", line 449, in open_workingtree
    return GitWorkingTree(self, repo, branch, index)
  File "/Users/pitkali/.bazaar/plugins/git/workingtree.py", line 97, in __init__
    self._reset_data()
  File "/Users/pitkali/.bazaar/plugins/git/workingtree.py", line 549, in _reset_data
    self.store.__getitem__, self.store[head].tree)
  File "/Library/Python/2.7/site-packages/dulwich/object_store.py", line 115, in __getitem__
    type_num, uncomp = self.get_raw(sha)
  File "/Library/Python/2.7/site-packages/dulwich/object_store.py", line 384, in get_raw
    raise KeyError(hexsha)
KeyError: 'cf1211dfac85ec342a8c5a24cd796d6e5720a289'

bzr 2.6.0 on python 2.7.5 (Darwin-13.0.0-x86_64-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'version']
plugins: bash_completion[2.6.0], builder[0.7.4dev], bzrtools[2.5.0],
    changelog_merge[2.6.0], colo[0.4.0], email[unknown], explorer[1.3.1dev],
    externals[1.3.4dev2], fastimport[0.14.0dev], git[0.6.12], grep[2.6.0],
    keychain[0.1.0], launchpad[2.6.0], loom[2.3.0dev],
    netrc_credential_store[2.6.0], news_merge[2.6.0], pipeline[1.4.0],
    po_merge[2.6.0], qbzr[0.23.1], rewrite[0.6.4dev], scmproj[0.6.3dev],
    upload[1.2.0dev], weave_fmt[2.6.0], xmloutput[0.8.9]
encoding: 'utf-8', fsenc: 'utf-8', lang: None

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

This happens:
* When running version command, not other commands.
* When running both outside any repository, and inside normal bazaar repository, or git repository.

Note that the value of the KeyError seems not to change.

Revision history for this message
Piotr Kalinowski (pitkali) wrote :

This seems to reproduce only with bzr 2.6.0 installed from homebrew. I cannot reproduce this using manually compiled 2.7 trunk, so I guess it's an issue with some homebrew patch. This would render the bug here invalid, I guess.

William Grant (wgrant)
Changed in bzr-git:
status: New → Invalid
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.