[BUG] spurious tree root changes in workingtree2 and 3
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Aug 23 21:25:24 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
> On Thu, 2007-08-23 at 08:52 -0400, Aaron Bentley wrote:
>> Formats that don't support unique roots also don't treat the tree root
>> as a proper directory. knit1 doesn't store a knit for it. Its
>> inventory format doesn't record roots as proper directories, so they
>> lack a revision attribute.
>
> Ah, so where does the .revision value come from in the inventory then?
Repository.deserialise_inventory:
def deserialise_inventory(self, revision_id, xml):
"""Transform the xml into an inventory object.
:param revision_id: The expected revision id of the inventory.
:param xml: A serialised inventory.
"""
revision_id = osutils.safe_revision_id(revision_id)
result = self._serializer.read_inventory_from_string(xml)
result.root.revision = revision_id
return result
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGze000F+nu1YWqI0RAgEvAJwOJJ5c14mN7JcMw3f/b2UvfJhf0gCfeUob
UISSSWB10pdOjKfEdPmyY7Q=
=BfaB
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list