[MERGE] key-length GraphIndex adapter

Robert Collins robertc at robertcollins.net
Wed Aug 1 08:57:56 BST 2007


On Mon, 2007-07-30 at 14:14 +1000, Robert Collins wrote:
> On Mon, 2007-07-30 at 14:01 +1000, Robert Collins wrote:
> > On Mon, 2007-07-30 at 09:44 +1000, Robert Collins wrote:
> > > This adds 'GraphIndexPrefixAdapter' to the bzrlib.index api. This
> > > adapter allows a 2-key-element index to be accessed as a single-key
> > > element index, for mapping multiple KnitGraphIndices onto a single
> > > GraphIndex.
> > 
> > Updated with write support. Doh!.
> 
> Actually, this is what I was planning. Doh! Doh! Doh!

Here is a further patch on my index branch, which returns the index that
a key was found in in each returned node. This allows mapping data from
multiple component indices back to the matching index - and thus to the
corresponding pack file, without putting the pack file name in the data
for each key and thus bloating index size.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index-update.patch
Type: text/x-patch
Size: 47169 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070801/21607edd/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070801/21607edd/attachment-0001.pgp 


More information about the bazaar mailing list