KeyError from repository created with bzr-svn 0.4.12 and 0.4.13

Brian de Alwis bsd at
Thu Oct 30 19:00:52 GMT 2008

I've checked out a project from a Subversion repository using bzr-svn,  
but 'bzr check' fails with a KeyError on the repository.  I've tried  
checking out the project using several combinations of bzr + bzr-svn  
versions, but they all failed in the same way (bzr 1.6 + bzr-svn  
0.4.12, bzr 1.7.1 + bzr-svn 0.4.13, and bzr 1.8 + bzr-svn 0.4.13).   
And this is using Subversion 1.5.2.

I've used bzr-svn with this repository previously, so the project does  
have bzr-svn properties.  I have recently changed the branching scheme  
to be more precise, from:




I dunno how much of an effect changing the branching scheme has; if  
this is the cause, is there a way to remove the properties or 'fix'  
the repository?

$ bzr co svn+ 
branches/port-gt-2/ GT2-trunk
The svn+ syntax is deprecated, use 
hci/projects/RTChess/branches/port-gt-2/ instead.
<> CMPT Subversion Repository bsd178  
- [                                                  ] copying  
revision   1/139<> CMPT Subversion  
Repository bsd178 password:
$ cd GT2-trunk
$ bzr check
Checking working tree at 'file:///Users/bsd/NECTAR/RTChess/GT2-trunk/'.
Checking repository at 'file:///Users/bsd/NECTAR/RTChess/GT2-trunk/'.
bzr: ERROR: exceptions.KeyError:  
('rtbots-20081024203043-7culigb369snr5n0-1',' at 

Traceback (most recent call last):
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
849, in run_bzr_catch_errors
  return run_bzr(argv)
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
795, in run_bzr
  ret = run(*run_argv)
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
495, in run_argv_aliases
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
2427, in run
  check_dwim(path, verbose, do_branch=branch, do_repo=repo,  
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line 302,  
in check_dwim
  result = repo.check()
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
138, in read_locked
  result = unbound(self, *args, **kwargs)
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
1858, in check
  return self._check(revision_ids)
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
1862, in _check
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line 87,  
in check
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line 208,  
in check_weaves
  self.repository.texts, progress_bar=self.progress)
File "/usr/pkg/lib/python2.5/site-packages/bzrlib/", line  
3233, in check_file_version_parents
  knit_parents = parent_map[key]
KeyError: ('rtbots-20081024203043-7culigb369snr5n0-1', ' at 

bzr 1.8 on python 2.5.2 (darwin)
arguments: ['/usr/pkg/bin/bzr', 'check']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_CA.UTF-8'
automv               /Users/bsd/.bazaar/plugins/automv [unknown]
clear_exec_bit       /Users/bsd/.bazaar/plugins/  
fastimport           /Users/bsd/.bazaar/plugins/fastimport [unknown]
grep                 /Users/bsd/.bazaar/plugins/grep [unknown]
launchpad            /usr/pkg/lib/python2.5/site-packages/bzrlib/ 
plugins/launchpad [unknown]
lessdiff             /Users/bsd/.bazaar/plugins/lessdiff [unknown]
lesslog              /Users/bsd/.bazaar/plugins/lesslog [unknown]
merge_into           /Users/bsd/.bazaar/plugins/merge_into [unknown]
rebase               /Users/bsd/.bazaar/plugins/rebase [0.4.1]
svn                  /usr/pkg/lib/python2.5/site-packages/bzrlib/ 
plugins/svn [0.4.13]
vimdiff              /Users/bsd/.bazaar/plugins/vimdiff [unknown]
xmloutput            /Users/bsd/.bazaar/plugins/xmloutput [0.4.4]
*** Bazaar has encountered an internal error.
  Please report a bug at
  including this traceback, and a description of what you
  were doing when the error occurred.

"Amusement to an observing mind is study." - Benjamin Disraeli

More information about the bazaar mailing list