Mercurial set per user rights

Posted by Kami on Server Fault See other posts from Server Fault or by Kami
Published on 2010-03-07T21:31:15Z Indexed on 2010/03/08 0:32 UTC
Read the original article Hit count: 461

Filed under:
|
|

I would like to set better user access to my mercurial repos trough the cgi web interface. This is my current hgweb.config :

[web]
contact = first.lastname
description = HG Repos
allow_push=user1,user2,user3
allow_read=user1,user2,user3
[paths]
repo01 = /home/mercurial/repo01
repo02 = /home/mercurial/repo02
repo03 = /home/mercurial/repo03
repo04 = /home/mercurial/repo04

How to setup the following ? :

  • user1 has only access (push/read) to repo01 and repo02
  • user2 has only access (read only) to repo01 and repo02
  • user3 has only access (read) to repo01 and repo02, (push/read) repo03

I've checked multiple mercurial config tutorials but nothing helped me so far.

© Server Fault or respective owner

Related posts about mercurial

Related posts about server