[merge][1.0][#164637] KnitVersionedFile.get_data_stream takes compression dependencies into account

Martin Pool mbp at sourcefrog.net
Mon Nov 26 07:43:14 GMT 2007


When pulling between pack repositories over bzr+ssh, you can get an
error saying that the compression basis for a file delta is not
present.  The old Knit code returned deltas in the order they're given
by the VersionedFile.versions() method, but that method didn't promise
to return them in a useful order.  For .knit Knits, the order happened
to match the compression order, but that's no longer true for packs.
Thus the error.

This makes them be ordered according to the compression dependencies
actually given in the index, and avoids scanning the whole index.

We could possibly be faster by asking the index for all the records in one go...

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20071126-164637-get_data_stream.diff
Type: text/x-diff
Size: 17820 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071126/990a5d5f/attachment-0001.bin 


More information about the bazaar mailing list