[MERGE] (0.17) reworked LogFormatter API
Kent Gibson
warthog618 at gmail.com
Sun Apr 29 05:39:33 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The attached bundle reworks the LogFormatter API to increase
extensibility and to support formatters that require log begin and end
markers. The API is made more extensible by passing the revision
details to the LogFormatter in a wrapper object of type LogRevision,
which can be extended without requiring further API changes. The
show, show_merge and show_merge_revno methods have been unified into a
single log_revision method.
The patch also extends the use of formatter capabilities
(supports_XXX) to determine which attributes of LogRevision need to be
populated.
Given this patch it should be pretty straight forward to incorporate
other log changes that have been proposed recently, such as James
Westby's XMLLogFormatter and John Arbash Meinel's deltas for merge
revisions.
The patch also includes a couple of incidental fixes.
For the long formatter, it makes the display of revision ids
consistent between mainline and merge revisions.
And `bzr log --verbose --line` will run faster since it doesn't bother
generating deltas that the line formatter can't display. I doubt
anyone in their right mind is using that particular combination, but
there you go.
Btw, the patch makes the changes to _show_log look more complicated
than they actually are.
They are mainly indentation changes and variable renaming.
Cheers,
Kent.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGNCGEgoxTFTi1P8QRAsKOAJ9MqSGBdIPe5hBO7JpTw9bWxc2eCQCeKnKk
9lA62hw2FyiAJ55ijieDFQU=
=iive
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lf_rework.patch
Type: text/x-patch
Size: 24329 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070429/0f9e4e2f/attachment-0001.bin
More information about the bazaar
mailing list