[MERGE] Improve NestedTrees test coverage

John Arbash Meinel john at arbash-meinel.com
Mon Apr 27 15:39:43 BST 2009


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

Aaron Bentley wrote:
> Hi all,
> 
> This is a follow-on patch, requested by Ian, to increase the test
> coverage of NestedTrees.
> 
> In the process, I discovered that iter_pathinfo_by_tree was giving the
> wrong results in some cases.  So I went with a much simpler,
> less-optimized implementation.  It's not clear to me whether optimizing
> would provide tangible benefits, nor is it clear what algorithms would
> provide best optimization, so I think it's best not to optimize it.
> 
> It was also an opportunity to think about the behaviour of get_path_info
> with regard to tree-references.  Since it's easy to traverse from a tree
> into a contained tree, but not the reverse, I decided to always return
> the tree that contains the tree-reference, not the tree that the
> tree-reference points to.
> 
> Aaron
> 
> 
> 

BB:approve

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn1w68ACgkQJdeBCYSNAAOeQwCfUZ1REdNZH1sRt09Nx53XRKkj
tzUAnRtmXoycfhcyLBwKh5lSwyZ6j760
=zMGA
-----END PGP SIGNATURE-----



More information about the bazaar mailing list