-
Committer:
John Arbash Meinel
-
Date:
2009-03-26 19:59:52 UTC
-
mto:
(3735.40.9 vilajam)
-
mto:
This revision was merged to the branch mainline in
revision
4280.
-
Revision ID:
john@arbash-meinel.com-20090326195952-w0qea66iw597ipza
Add some direct tests for CHKInventory._entry_to_bytes
and _bytes_to_entry.
Also, add a new function _bytes_to_utf8name_key. I wanted to just add
_bytes_to_key, but it seems we have code that uses the name field to
check if this is a root key that should not be transmitted.
Anyway, by having this function, item_keys_introduced_by avoids a
bunch of .decode() calls, as well as not building up InventoryEntry
objects.
Also use this when gathering text_refs in GCPacker. Hopefully, we
could turn it on all the time, if it got cheap enough.
And it points us in the right directory for a StreamSource that
sends CHK pages.