Exclude command for users
Matt Harbison
mharbison72 at gmail.com
Fri Aug 17 04:23:03 UTC 2018
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.
More information about the Mercurial
mailing list