Mercurial deny clone/pull?

583 views Asked by At

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?

2

There are 2 answers

0
neuro On BEST ANSWER

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

0
Faheem Mitha On

If you are restricting access to https, then you could try using RhodeCode. See https://bitbucket.org/marcinkuzminski/rhodecode/.