Changing the Commit Message using Hooks
Greg Ward
greg-hg at gerg.ca
Tue Mar 24 10:11:48 CDT 2009
On Tue, Mar 24, 2009 at 10:33 AM, Wendel <wendel12345 at yahoo.com.br> wrote:
> Its possible to change the commit message using hooks? Maybe using precommit
> hook?
In general, probably not: once somebody clones your repository, they
can install any hooks they like. You can only controls what goes into
repositories that you control directly. And by the time a changeset
is being pushed to another repository, it's immutable.
I suspect the right answer is a commit wrapper script, training, and a
hook in your maste repository to make sure people get it right (i.e.
reject changesets with improper log messages).
Greg
More information about the Mercurial
mailing list