Comment 1 for bug 369923

Revision history for this message
druido (nvitacolonna) wrote :

Similar steps lead to the following error when using repository format 2a (bzr 2.0.1):

bzr: ERROR: The method _generate_inventory is not supported on objects of type CHKInventoryRepository.

To reproduce:

bzr init-repo repo
cd repo
bzr init trunk
cd trunk
mkdir dir
echo 123 > dir/file
bzr add
bzr commit -m initial
bzr split dir
bzr join --reference dir
bzr commit -m "tree split"
mkdir bar
bzr add
bzr revert

In this case the commit works, but 'bzr add' and 'bzr revert' give the error above. The problem is due to 'bzr join --reference': without that command, everything works fine. As a work-around, create a new branch, or type (at your own risk)

rm -fr .bzr/checkout
bzr co .

bzr --version
Bazaar (bzr) 2.0.1
  Python interpreter: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python 2.6.4
  Python standard library: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
  Platform: Darwin-10.2.0-i386-64bit
  bzrlib: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib
  Bazaar configuration: /Users/druido/.bazaar
  Bazaar log file: /Users/druido/.bzr.log