[MERGE] Accelerate build_tree by using working tree files

Aaron Bentley aaron.bentley at utoronto.ca
Wed Dec 19 15:08:22 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Bentley wrote:

> This patch accelerates branch and checkout by allowing them to use files
> from a related working tree, if those files have the correct hash.

Here is a revised version that works around the issue that caused the
test failure.  It still has the same performance advantages for
branching.  But for sprout, an accelerator_tree must be supplied
explicitly, so it won't automagically speed up the test suite.

Additionally, it's able to use acceleration when branching from a
checkout.  Using the branch bzrdir meant that it could not use the
checkout tree, because the branch bzrdir doesn't realize that it was
reached through a branch-reference.  It previously would have to use the
tree at the branch that the checkout was checked-out from.  But there is
rarely a tree for such branches.  And a checkout always has a tree.  So
by using open_tree_or_branch, we get the checkout's tree, but the branch
is the one *referenced* by the branch-reference.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaTPm0F+nu1YWqI0RAkZhAJ920RR70D6jDmuOgIE3T2qVF6nHhwCfbgrb
brR2RnvRuhtB/ydydgOYMJ8=
=TfXg
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fast-build-tree2.patch
Type: text/x-patch
Size: 30127 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071219/c015f320/attachment-0001.bin 


More information about the bazaar mailing list