How do I get the commit message for a Revision object?
Jelmer Vernooij
jelmer at samba.org
Mon Feb 16 18:32:43 GMT 2009
On Mon, 2009-02-16 at 19:27 +0100, Nicholas Allen wrote:
> I am improving bzr-hookless-email so that it can support using Cheetah
> templates for the subject and contents of an email message that it
> sends and can also send HTML messages. I read the API for revision
> class
> http://starship.python.net/crew/mwh/bzrlibapi/bzrlib.revision.Revision.html
> but it does not seem to offer a method to get the commit message (and
> not just the first line of it). I would obviously like to include this
> in the email message.
>
> This is really my first time programming in Python and using the
> bzrlib API so any help greatly appreciated...
message is a property on Revision, e.g.:
print Repository.get_revision("some-revid").message
Cheers,
Jelmer
--
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org
More information about the bazaar
mailing list