[MERGE] Implement xml8 serializer
Aaron Bentley
aaron at aaronbentley.com
Fri Mar 28 03:38:49 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
This patch implements the xml8 serializer which will be used by the
upcoming pack-1.4 format.
Format 8 is based on format 6, the serializer used for rich-root and
rich-root-pack. Its only physical difference is in the format numbers.
Format 6's revisions (but not inventories) bore the format 5 marker, so
it is impossible to tell what their inventory_sha1 refers to without
other information. Format 8 will guarantee that we know what inventory
format corresponds with a given revision.
pack-1.4 will validate inventory sha1s. When converting into it, if an
inventory sha1 fails to convert, I plan to compare against the following
historical inventory formats: format 5, format 5 with revision_id,
format 6 and format 7.
This patch changes the inheritance so that older formats inherit from
new ones. This means that the current format is all in one place, and
we can drop support for old formats easily. It also makes it easy for
future formats to use the same numbers for their revision and inventory
formats.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH7GhJ0F+nu1YWqI0RAhNDAJ0b7efzxNcU7Vwqa5nYMZGvchAwIgCfdi0I
BYcBNdgPt838DaUzzt6E4Fw=
=3M1h
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pack-1.4-3315.patch
Type: text/x-diff
Size: 28319 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080327/ed519b60/attachment-0001.bin
More information about the bazaar
mailing list