Nested tree commit fails in shared repositories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned | ||
Breezy |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hello!
I'm really happy that the nested trees are about to get ready for use!
Maybe I'm complaining about something which is in the pipeline of development...
The following series of commands always ends up with the last commit failing:
mkdir repo
cd repo
bzr init-repo . --development-
mkdir proj
cd proj
bzr init --development-
mkdir dir
echo 123 > dir/file
bzr add
bzr commit -m initial
bzr split dir
bzr join --reference dir
bzr commit -m "tree split"
Committing to: /home/johan/
aborting commit write group: BzrError(already in a write group)
bzr: ERROR: already in a write group
Not using a shared repository somewhat takes out the fun of splitting a tree with 2GB repository data.
Each time you split off a subtree, you end up with another 2GB... ;-)
And what would happen if you branch that composite tree a couple of times. :-P
Anyway, it is a great piece of work!
Looks like it is as simple to use as a single tree.
Cheers
/Johan
PS.
Version information...
bzr --version
Bazaar (bzr) 1.15dev
from bzr checkout /usr/local/
revision: 4316
revid: <email address hidden>
branch nick: bzr.dev
Python interpreter: /usr/bin/python 2.5.2
Python standard library: /usr/lib/python2.5
bzrlib: /usr/local/
Bazaar configuration: /home/johan/.bazaar
Bazaar log file: /home/johan/
Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in bzr: | |
status: | Triaged → Confirmed |
tags: | added: commit nested-trees |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Medium |
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 CHKInventoryRep ository.
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 Library/ Frameworks/ Python. framework/ Versions/ 2.6/Resources/ Python. app/Contents/ MacOS/Python 2.6.4 Library/ Frameworks/ Python. framework/ Versions/ 2.6/lib/ python2. 6 10.2.0- i386-64bit Library/ Frameworks/ Python. framework/ Versions/ 2.6/lib/ python2. 6/site- packages/ bzrlib druido/ .bazaar druido/ .bzr.log
Bazaar (bzr) 2.0.1
Python interpreter: /opt/local/
Python standard library: /opt/local/
Platform: Darwin-
bzrlib: /opt/local/
Bazaar configuration: /Users/
Bazaar log file: /Users/