Exclude command for users
Augie Fackler
raf at durin42.com
Fri Aug 17 14:32:50 UTC 2018
> On Aug 17, 2018, at 12:23 AM, Matt Harbison <mharbison72 at gmail.com> wrote:
>
> 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.
We don’t have any other commands we can disable easily in core, but if you could give us an idea of what other commands you want to disable and why we might be able to add that functionality.
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
More information about the Mercurial
mailing list