I’m trying to write a bzr post-commit hook for my private bugtracker, but I’m stuck at the function signature of
post_commit(local, master, old_revno, old_revid, new_revno, mew_revid)
How can I extract the commit message for the branch from this with bzrlib in Python?
And the answer is like so:
local and master are Branch objects, so once you have a revision, it’s easy to extract the message.