how to setup a user with readonly access to all repositories?

Christophe Furmaniak christophe.furmaniak.ml at gmail.com
Sun Jan 9 07:21:38 CST 2011


Hi,

I'd need to setup a special user with readonly access to all my repositories
(this need comes from a context of continuous integration with a big (>300)
number of repositories and a will to simplify the config).

There is a simple way to do that, add my user (hgreadonly) to the allow_read
list for each repo.
I'd like to do it without having to setup this special user for each
repository.

We are using hgweb.cgi with apache httpd and AuthBasicFile provider

I thought that the reposettings extension could help me, but:

1) I didn't achieve to make the reposettings extension work :)
=> the extension is correctly detected but my special user still doesn't
have access to all the repos (I know it because of some debug traces I
activated and saw in the error log of httpd)


2) I've had a look at the extension source code and even if I'm far from
being a python expert (actually, the code of the extension is the first
python code I saw :D) it seems that the reposettings extension does not take
into account the .hg/hgrc file of each repository.
Does this extension only work with the global .hgrc file and not with each
repo hgrc file?

Any tips on where I'm wrong?

Anybody that had the same need and found a solution?

Thanks.

Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20110109/4969e9af/attachment.htm>


More information about the Mercurial mailing list