I have followed the many helpful ideas presented in this SO question. Now the last thing I'm wrestling with is how to allow certain people to access and view the contents of certain repositories. I want to have a central Repos folder on my machine, where all Hg Repos will live, but I would like to say that Person X can see Repos A, B and C while Person Y can only see A & C. I have not been able to find the answer to this question and I hoped that someone on SO could assist me. I can control the push/pull, but I haven't seen a way to actually prevent repos from being visible in the hgwebdir CGI application.
Asked
Active
Viewed 1,269 times
4
-
What OS/webserver are you using? You could perhaps use the webserver's auth to limit access to certain repos. – Macke Feb 24 '10 at 21:02
-
Windows/IIS7 But my understanding is that access to the collections is done via the AppPool user. – JPrescottSanders Feb 24 '10 at 21:33
1 Answers
1
Use the ACL Extension (distributed with Mercurial).

chb
- 1,727
- 7
- 25
- 47

Ry4an Brase
- 78,112
- 7
- 148
- 169
-
Have you used this extension in a Windows/IIS deployment of mercurial? – JPrescottSanders Feb 25 '10 at 17:42
-
God no, one would be crazy to use IIS for anything. :) But it should work just fine. It's all in python land and you can get the username into the system via environment variable. – Ry4an Brase Feb 26 '10 at 03:11
-
What web server have you used the ACL Extension in? (I appologize for the inqusition). Were you able to secure repos so that people could read, read/write, or not even view them within the hgwebdir? – JPrescottSanders Feb 26 '10 at 12:38
-
I don't use it, but plenty of folks do. You can do read-only vs. read-write with it. Hiding you'll want to use your HTTP server for. – Ry4an Brase Feb 27 '10 at 03:26