[MERGE] Replace VersionedFile.get_parents with get_parent_map

Robert Collins robertc at robertcollins.net
Thu Mar 20 01:34:52 GMT 2008


This may seem large for a trivial change, but its not really that
trivial.

get_parents was a very old API from back with weaves and did work to
hide ghosts. So, removing it meant finding and fixing many places ghosts
were not handled correctly.

This patch then:
 - deprecates VersionedFile.get_parents
 - prohibits pulling a ghost containing repo into a non-ghost-capable
repo
 - adds VersionedFile.get_parent_map
 - tunes the internals of KnitVersionedFile to reduce friction and use
this api where possible

This is the first of many patches that will give us a much leaner
VersionedFile api, which I will then port across via a thunk layer to
VersionedFiles.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-olijCS.patch
Type: text/x-patch
Size: 79502 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080320/68f7c96b/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/20080320/68f7c96b/attachment-0001.pgp 


More information about the bazaar mailing list