Exclude command for users

AMGHAR TOUFFIK tamghar at groupeastek.fr
Fri Aug 17 09:18:48 UTC 2018


Thank you for this help.

I'm going to use unix groups to disable some commands.
May be  looking for a way to overload hg command by a Mercurial hook.


Best regards,
Touffik




________________________________
De : Matt Harbison <mharbison72 at gmail.com>
Envoyé : jeudi 16 août 2018 16:23
À : tamghar at astek.fr
Cc : Mercurial mailing list
Objet : Re: Exclude command for users

On Thu, 16 Aug 2018 12:00:44 -0400, <tamghar at astek.fr> wrote:

> Hello,
>
> I'm using Mercurial 3.7.2 and want to exclude some commands to non admin
> users.
> Any way to do that ? I'm thinking about implemented extension in
> $HOME/.hgrc.
>
> Exemple : do not allow 'hg rollback'.

If you can upgrade to at least 3.9, the `ui.rollback=False` config lets
you disable rollback.  It defaults to False on more recent versions.  I
don't know of a way to disable other random commands though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20180817/4fde5e92/attachment-0002.html>


More information about the Mercurial mailing list