Using bzr 1.16, when commiting a change containing a set of delete files I got the following exception:
aborting commit write group: KeyError('red_installer.js-20080605213346-1rfly8x1o30bmnb6-8723',)
bzr: ERROR: exceptions.KeyError: 'red_installer.js-20080605213346-1rfly8x1o30bmnb6-8723'
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 729, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 924, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 560, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 2937, in run
exclude=safe_relpath_files(tree, exclude))
File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 226, in commit
result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 228, in commit
*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 363, in commit
self._update_builder_with_changes()
File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 644, in _update_builder_with_changes
self.work_tree, self.basis_revid, iter_changes):
File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 638, in record_iter_changes
for change in iter_changes:
File "/usr/lib/python2.6/dist-packages/bzrlib/commit.py", line 700, in _filter_iter_changes
self.work_tree.unversion(deleted_ids)
File "/usr/lib/python2.6/dist-packages/bzrlib/mutabletree.py", line 52, in tree_write_locked
return unbound(self, *args, **kwargs)
File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 1260, in unversion
self._inventory.remove_recursive_id(file_id)
File "/usr/lib/python2.6/dist-packages/bzrlib/inventory.py", line 1396, in remove_recursive_id
to_find_delete = [self._byid[file_id]]
KeyError: 'red_installer.js-20080605213346-1rfly8x1o30bmnb6-8723'
bzr 1.16 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.16]
fastimport /home/jal/.bazaar/plugins/fastimport [0.8dev]
launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [1.16]
netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [1.16]
qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.9.8]
rebase /home/jal/.bazaar/plugins/rebase [0.5.1dev]
xmloutput /usr/lib/python2.6/dist-packages/bzrlib/plugins/xmloutput [0.8.3]
A bzr status just before the commit reported:
jal@odeon:~/itrisbzr/vp-trunk$ bzr status
removed:
viewpoint/WebContent/iRed/Red/Maintenance/Installer/
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installer.js
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerChecks.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerExport.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerMainPage.inc
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerMainPage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerMessage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerParameters.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerPrintablePage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerReportHeader.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerReportIndex.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_installerReportMenu.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packager.js
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packagerBlobViewer.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packagerMainPage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packagerModuleFilesIF.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packagerSubmitPage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packagerUploadCompleteIF.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packagerUploadFilesIF.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_packagerViewPage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_update_blobsEditPage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_update_blobsSubmitPage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/Red_update_blobsViewPage.jsp
viewpoint/WebContent/iRed/Red/Maintenance/Installer/_marcus_Red_packagerViewPage.jsp
viewpoint/WebContent/iRed/Red/updates/updatesSubmitPage.jsp
modified:
viewpoint/WebContent/iRed/Bae/Maintenance/Bae_Blob_ViewPage.jsp
viewpoint/WebContent/iRed/Bae/Maintenance/Bae_object_subtypenEditPage.jsp
viewpoint/WebContent/iRed/Bae/Maintenance/Bae_object_subtypenSubmitPage.jsp
viewpoint/WebContent/iRed/Extern/Decade/Afschriften/Bae_afschrift_betaalopdrEditPage.jsp
viewpoint/WebContent/iRed/Kon/Crm_contractenReadPage.jsp
viewpoint/WebContent/iRed/Vgs/Len/Bae_administratiesEditPage.jsp
viewpoint/WebContent/iRed/Vgs/Len/Fmp_effect_typenEditPage.jsp
viewpoint/WebContent/iRed/Wfl/WfactiviteitenReport.jsp
The silly thing is that if I commit again immediately afterwards the commit succeeds!? And this is not an isolated case, I experienced the same behaviour several times now, only in 1.16.
I'm seeing something very similar with 1.16.1
aborting commit write group: KeyError( 'specification- 20090527025523- 61x6cd872383vbo s-2',) KeyError: 'specification- 20090527025523- 61x6cd872383vbo s-2'
bzr: ERROR: exceptions.
Traceback (most recent call last): python2. 6/dist- packages/ bzrlib/ commands. py", line 729, in exception_ to_return_ code python2. 6/dist- packages/ bzrlib/ commands. py", line 924, in run_bzr python2. 6/dist- packages/ bzrlib/ commands. py", line 560, in run_argv_aliases **all_cmd_ args) python2. 6/dist- packages/ bzrlib/ builtins. py", line 2937, in run safe_relpath_ files(tree, exclude)) python2. 6/dist- packages/ bzrlib/ decorators. py", line 192, in write_locked python2. 6/dist- packages/ bzrlib/ workingtree_ 4.py", line 226, in commit commit( self, message, revprops, *args, **kwargs) python2. 6/dist- packages/ bzrlib/ decorators. py", line 192, in write_locked python2. 6/dist- packages/ bzrlib/ mutabletree. py", line 228, in commit python2. 6/dist- packages/ bzrlib/ commit. py", line 363, in commit _update_ builder_ with_changes( ) python2. 6/dist- packages/ bzrlib/ commit. py", line 644, in _update_ builder_ with_changes python2. 6/dist- packages/ bzrlib/ repository. py", line 638, in record_iter_changes python2. 6/dist- packages/ bzrlib/ commit. py", line 700, in _filter_ iter_changes work_tree. unversion( deleted_ ids) python2. 6/dist- packages/ bzrlib/ mutabletree. py", line 52, in tree_write_locked python2. 6/dist- packages/ bzrlib/ workingtree_ 4.py", line 1260, in unversion _inventory. remove_ recursive_ id(file_ id) python2. 6/dist- packages/ bzrlib/ inventory. py", line 1396, in remove_recursive_id byid[file_ id]] 20090527025523- 61x6cd872383vbo s-2'
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
exclude=
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
result = WorkingTree3.
File "/usr/lib/
result = unbound(self, *args, **kwargs)
File "/usr/lib/
*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
self.work_tree, self.basis_revid, iter_changes):
File "/usr/lib/
for change in iter_changes:
File "/usr/lib/
self.
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
to_find_delete = [self._
KeyError: 'specification-
bzr 1.16.1 on python 2.6.2 (linux2) python2. 6/dist- packages/ bzrlib/ plugins/ builddeb [unknown] python2. 6/dist- packages/ bzrlib/ plugins/ bzrtools [1.16] python2. 6/dist- packages/ bzrlib/ plugins/ launchpad [1.16.1] credential_ store /usr/lib/ python2. 6/dist- packages/ bzrlib/ plugins/ netrc_credentia l_store [1.16.1] python2. 6/dist- packages/ bzrlib/ plugins/ svn [0.6.2] /bugs.launchpad .net/bzr/ +filebug
arguments: ['/usr/bin/bzr', 'commit', '-m', 'upgrade gems and create new cucumber environment']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
builddeb /usr/lib/
bzrtools /usr/lib/
launchpad /usr/lib/
netrc_
svn /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description ...