Force user to be System user?

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Aug 6 16:52:12 CDT 2009


On Thu, 06 Aug 2009 15:42:25 -0400, Michael Thomas <mlists at bigrideau.com> wrote:
> Noob question but googling provided no answers.
>
> Is there a way to force the user name of the commiter to be that of
> the user account being used? My naive understanding is that using -u
> one can make the user be anything one wants? In that scenario how do
> people audit who has commited what?

With hooks and by auditing who pushes changesets is one option.

You can install a local hook script, that runs at `pretxncommit' time,
and checks the author of the pending changesets.  If one of them is not
allowed to push or commit to your repository you can reject the push or
commit operation.

It's then up to the person who wants to push to fix their local tree and
try again.



More information about the Mercurial mailing list