Rev 2079: (Robert Collins, John Arbash Meinel) Reduce inventory write operations during tree construction by making tree inventory writes occur at tree unlock time. This adds WorkingTree.flush() and alters set_root_id to not write the inventory. in /home/pqm/archives/thelove/bzr/+trunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Mon Oct 16 05:21:08 BST 2006
------------------------------------------------------------
revno: 2079
revision-id: pqm at pqm.ubuntu.com-20061016042107-3868eeaa654059ae
parent: pqm at pqm.ubuntu.com-20061015163229-648b1f2ebe692136
parent: robertc at robertcollins.net-20061016011359-803135f6f6a5c793
committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Mon 2006-10-16 05:21:07 +0100
message:
(Robert Collins, John Arbash Meinel) Reduce inventory write operations during tree construction by making tree inventory writes occur at tree unlock time. This adds WorkingTree.flush() and alters set_root_id to not write the inventory.
added:
bzrlib/tests/workingtree_implementations/test_flush.py test_flush.py-20061005073432-585uyj0sua6r7i9v-1
bzrlib/tests/workingtree_implementations/test_read_working_inventory.py test_read_working_in-20061005073432-585uyj0sua6r7i9v-2
bzrlib/tests/workingtree_implementations/test_set_root_id.py test_set_root_id.py-20061004073850-0r1c7qikmnkb8m9k-1
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/errors.py errors.py-20050309040759-20512168c4e14fbd
bzrlib/tests/test_errors.py test_errors.py-20060210110251-41aba2deddf936a8
bzrlib/tests/workingtree_implementations/__init__.py __init__.py-20060203003124-b2aa5aca21a8bfad
bzrlib/tests/workingtree_implementations/test_locking.py test_locking.py-20060707151933-tav3o2hpibwi53u4-3
bzrlib/workingtree.py workingtree.py-20050511021032-29b6ec0a681e02e3
------------------------------------------------------------
merged: robertc at robertcollins.net-20061016011359-803135f6f6a5c793
parent: robertc at robertcollins.net-20061013073925-c5ffa47050a07d5e
parent: pqm at pqm.ubuntu.com-20061015163229-648b1f2ebe692136
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Mon 2006-10-16 11:13:59 +1000
message:
Merge bzr.dev.
------------------------------------------------------------
merged: robertc at robertcollins.net-20061013073925-c5ffa47050a07d5e
parent: robertc at robertcollins.net-20061013071251-b49ee527c95bcacf
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Fri 2006-10-13 17:39:25 +1000
message:
Merge reviews.
------------------------------------------------------------
merged: robertc at robertcollins.net-20061013071251-b49ee527c95bcacf
parent: robertc at robertcollins.net-20061006003100-2ef87a9af77db232
parent: robertc at robertcollins.net-20061013064514-2fddd7f772445db3
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Fri 2006-10-13 17:12:51 +1000
message:
Merge bzr.dev.
------------------------------------------------------------
merged: robertc at robertcollins.net-20061006003100-2ef87a9af77db232
parent: robertc at robertcollins.net-20061005075224-6b7bb42ecd661206
parent: robertc at robertcollins.net-20061006002822-6e4d6301d27a8e0e
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Fri 2006-10-06 10:31:00 +1000
message:
Merge bzr.dev.
------------------------------------------------------------
merged: robertc at robertcollins.net-20061005075224-6b7bb42ecd661206
parent: robertc at robertcollins.net-20061005073458-f2a32fb8a43c0c34
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Thu 2006-10-05 17:52:24 +1000
message:
Update comments and unlock in a better order in tree initialization (Robert Collins, John Meinel)
------------------------------------------------------------
merged: robertc at robertcollins.net-20061005073458-f2a32fb8a43c0c34
parent: robertc at robertcollins.net-20061004074228-8ac10a23b9713335
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Thu 2006-10-05 17:34:58 +1000
message:
New method ``WorkingTree.flush()`` which will write the current memory
inventory out to disk. At the same time, read_working_inventory will
no longer trash the current tree inventory if it has been modified within
the current lock, and the tree will now ``flush()`` automatically on
``unlock()``. ``WorkingTree.set_root_id()`` has been updated to take
advantage of this functionality. (Robert Collins, John Arbash Meinel)
------------------------------------------------------------
merged: robertc at robertcollins.net-20061004074228-8ac10a23b9713335
parent: robertc at robertcollins.net-20061004070333-622180ec5423be98
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Wed 2006-10-04 17:42:28 +1000
message:
``WorkingTree.set_root_id(None)`` is now deprecated. Please
pass in inventory.ROOT_ID if you want the default root id value.
(Robert Collins, John Arbash Meinel)
------------------------------------------------------------
merged: robertc at robertcollins.net-20061004070333-622180ec5423be98
parent: robertc at robertcollins.net-20061004061912-239c7d82976ddd40
committer: Robert Collins <robertc at robertcollins.net>
branch nick: init-tree-overhead
timestamp: Wed 2006-10-04 17:03:33 +1000
message:
(Robert Collins, John Meinel) Change WorkingTree.get_root_id to not trigger read_working_inventory and instead use the one inside the current transaction.
More information about the bazaar-commits
mailing list