"bzr: ERROR: exceptions.KeyError:" at 'bzr remove'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned |
Bug Description
I committed my recent changes successfully, but they contain some files I used only for testing and which I now want to remove; 'bzr status -SV -r <previous rev.>' says:
+N tests/suite/
when I try to 'bzr remove' this file, I get:
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run_
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
force=
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
want_
File "_dirstate_
File "_dirstate_
File "_dirstate_
File "/usr/lib/
self.
File "/usr/lib/
block_index, present = self._find_
File "/usr/lib/
cache=
KeyError: 'tests/
bzr 2.1.1 on python 2.6.4 (Solaris-
arguments: ['/bin/bzr', 'remove', 'tests/
encoding: 'ISO8859-1', fsenc: 'ISO8859-1', lang: None
plugins:
difftools /home/schuster/
extmerge /home/schuster/
gtk /home/schuster/
launchpad /usr/lib/
mysql /home/schuster/
netrc_
news_merge /usr/lib/
qbzr /home/schuster/
rewrite /home/schuster/
*** 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.
tags: | added: dirstate |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
I'm not entirely sure what is going on here. It hints that it thinks the files are in a directory which doesn't have a proper entry in the inventory. (so you have a file that exists in a dir that doesn't exist).
Certainly we should figure out what is going on.
In the short term, if you backup your .bzr directory, and then create a new checkout and replaced the .bzr/checkout directory of the old location with the new one, this might be fixed.