[MERGE] Implement and test Tree.get_file_sha1 and Tree.__contains__ for previewtree

Aaron Bentley aaron at aaronbentley.com
Tue Sep 23 06:05:08 BST 2008


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

Hi all,

This patch adds PreviewTree.get_file_sha1 and PreviewTree.__contains__,
and tests them using tree_implementation tests.

Until now, __contains__ has been provided by assigning Tree.has_id to
__contains__.  However, this approach means that overriding has_id in a
subclass fails to change the implementation of __contains__.

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

iD8DBQFI2HkE0F+nu1YWqI0RAtESAJ9XodlVAmMoP5O0wcHbRVPGKqv2uwCffewJ
KhefAQnSl2AcDea5ITw7GIo=
=hhbf
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get_file_sha1-3426.patch
Type: text/x-diff
Size: 16159 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080923/65b657d7/attachment.bin 


More information about the bazaar mailing list