[MERGE] [BUG #165290] inter-pack fetch should make sure we aren't missing a compression parent

John Arbash Meinel john at arbash-meinel.com
Fri Nov 30 20:15:55 GMT 2007


This patch includes Robert's update for native pack reconcile, because
he had worked on some functions that made this easier.

This changes the native "InterPackRepository.fetch()" code, so that it
will check that all external references in the newly fetched data are
properly satisfied before it will commit the data to the target
repository.

This way, if there are any discrepancies between the source and target
repositories, it will error at fetch time, rather than much later when it
goes to extract those texts.

Robert: I did go ahead and make _external_compression_parents_of_new_texts
a member of Pack rather than Packer, as it just makes a lot more sense
there. I'm also thinking we probably should add some tests for it, though
the code is simple enough and does get excercised as a secondary effect.

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 41082 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071130/c33f36ae/attachment-0001.bin 


More information about the bazaar mailing list