How do I get the commit message for a Revision object?

Nicholas Allen nick.allen at onlinehome.de
Mon Feb 16 18:43:41 GMT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks! Where do I see this in the documentation though? - just so I
know for the future....

Nick

Jelmer Vernooij wrote:
> 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmZs9kACgkQ1+i51gqqEGl5JACguwL8tJIWJ+3ofiWekF8ECNdH
CDsAn1yI5h1OwpQbVXIhPU4lLTfgV/3U
=qaSa
-----END PGP SIGNATURE-----




More information about the bazaar mailing list