mercurialhgrc

Mercurial deny clone/pull?


I'm currently developing a Python Fabric script that contains some sensitive information. I would like to put this in a repository for a certain few users to access.

I've put this in my hgrc file:

[web]
allowpull = false
allow_read = user1, user2
allow_push = user1

My problem is that I only want user1 to be able to clone and pull? Just to test I added the allowpull command which seems to be ignored?


Solution

  • Well, basically with read access, it is hard to deny clone and pull. If you want this granularity, try the ACL extension.