How do I get the commit message for a Revision object?
Jelmer Vernooij
jelmer at samba.org
Mon Feb 16 18:48:55 GMT 2009
On Mon, 2009-02-16 at 19:43 +0100, Nicholas Allen wrote:
> Thanks! Where do I see this in the documentation though? - just so I
> know for the future....
It should be in the documentation you were linking to.
I tend to just look at the source code, this particular bit should be in
bzrlib/revision.py
Cheers,
Jelmer
> 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-----
>
--
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org
More information about the bazaar
mailing list