How do you access the commit message in a Mercurial in-process hook?
Posted
by davidavr
on Stack Overflow
See other posts from Stack Overflow
or by davidavr
Published on 2010-03-16T01:18:27Z
Indexed on
2010/03/16
1:19 UTC
Read the original article
Hit count: 401
I've been trying
def debug_hook(ui, repo, **kwargs):
changectx = repo[None]
ui.status('change.desc: %s\n' % changectx.description())
return True
But it always prints an empty string. Is this because it is a precommit hook and the message isn't available yet? Or am I just missing something obvious?
© Stack Overflow or respective owner