Changing the Commit Message using Hooks
Wendel
wendel12345 at yahoo.com.br
Wed Mar 25 07:29:20 CDT 2009
Hi Greg,
In my case, it's a small project and i have directly control of all
repositories.
I need a hook to add some information in the commit message everytime
someone commit in his local repository. I tried using the precommit hook
but, it seems i can see but not change the commit message.
Regards,
Wendel B Silva
Greg Ward-17 wrote:
>
> 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
>
--
View this message in context: http://www.nabble.com/Changing-the-Commit-Message-using-Hooks-tp22681720p22700689.html
Sent from the Mercurial mailing list archive at Nabble.com.
More information about the Mercurial
mailing list