KeyError in object_store.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Git Plugin |
Invalid
|
Undecided
|
Unassigned | ||
bzr-colo |
New
|
Undecided
|
Unassigned |
Bug Description
I was trying to update a previously-pulled branch and bzr git threw a KeyError (see below). This branch was previously part of a repository that was made standalone, then moved, and then colo-ify'd (with bzr-colo).
What's interesting is that I was able to successfully re-branch from the original repository (on github) to a new local branch, and subsequently pull from that new local branch. And a subsequent re-pull from the original parent on github worked fine.
$ bzr pull
Using saved parent location: git://github.
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/pkg/
return the_callable(*args, **kwargs)
File "/usr/pkg/
ret = run(*run_argv)
File "/usr/pkg/
return self.run(
File "/usr/pkg/
return self._operation
File "/usr/pkg/
self.cleanups, self.func, *args, **kwargs)
File "/usr/pkg/
result = func(*args, **kwargs)
File "/usr/pkg/
possible_
File "/usr/pkg/
result = unbound(self, *args, **kwargs)
File "/usr/pkg/
local=local)
File "/usr/pkg/
result = unbound(self, *args, **kwargs)
File "/usr/pkg/
possible_
File "/usr/pkg/
stop_revision, overwrite=
File "/usr/pkg/
determine_
File "/usr/pkg/
objects_iter, store, recorded_wants, pb, limit)
File "/usr/pkg/
target_
File "/usr/pkg/
allow_
File "/usr/pkg/
allow_
File "/usr/pkg/
base_tree, existing_children, lookup_object))
File "/usr/pkg/
base_inv, c_path, lookup_
File "/usr/pkg/
base_inv, c_path, lookup_
File "/usr/pkg/
return target_
File "/usr/pkg/
raise KeyError(sha)
KeyError: '7e89500b6047cc
bzr 2.2b2 on python 2.6.2 (Darwin-
arguments: ['/usr/
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_CA.UTF-8'
plugins:
automv /Users/
bash_completion /Users/
bzrtools /Users/
clear_exec_bit /Users/
colo /Users/
diffstat /Users/
externals /Users/
extmerge /Users/
git /usr/pkg/
grep /Users/
launchpad /usr/pkg/
mail_app /Users/
netrc_
news_merge /usr/pkg/
rewrite /Users/
sprout /Users/
svn /Users/
xmloutput /Users/
*** 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:/
including this traceback and a description of the problem.
Changed in bzr-git: | |
status: | New → Incomplete |
Changed in bzr-git: | |
status: | Incomplete → Invalid |
Attempting this with a trunk version of bzr-git might fix this issue,
though I doubt that will be the case.
Does "bzr git-objects" work without problems ?
Another thing you could try is to remove the bzr-git cache
at .bzr/repository/git and trying again. That'll cause bzr-git to
rebuild the cache.
Cheers,
Jelmer