tags:

views:

216

answers:

1

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.

+1  A: 

Use the ACL Extension.

Ry4an
Have you used this extension in a Windows/IIS deployment of mercurial?
JPrescottSanders
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
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
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