how to setup a user with readonly access to all repositories?
Mads Kiilerich
mads at kiilerich.com
Sun Jan 9 10:28:31 CST 2011
Christophe Furmaniak wrote, On 01/09/2011 02:21 PM:
> 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.
You can perhaps put that configuration in the apache users .hgrc - or
in the global configuration. See http://selenic.com/hg/help/config .
I assume all the repos are scripted somehow, so perhaps you could also
simply tweak your scripts to set the right configuration for each repo.
%include directives can make it quite dynamic - see
http://www.selenic.com/mercurial/hgrc.5.html#syntax .
/Mads
More information about the Mercurial
mailing list