It depends on which transport protocol and server you are using.
Http
You can add a list of users who are allowed to enter repos in the .hg / hgrc configuration file .
[web]
allow_push = frodo, sam
Ssh
You can use either the file resolution system of your OS, or one of the ssh wrappers described in SharedSSH .
File
You can use the file permissions system of your OS.
source
share