allow access on a per-directory basis of a repository, or to a subrepository

Paolo Berto pberto at jupiter-jazz.com
Wed May 12 04:13:15 UTC 2010


Hi there,

we have a single repository for our project and we would like to have 
our contributors push/pull/clone/read *only* certain parts (directories) 
of the repository. It seems to me access is always granted on a 
per-repository basis, eg: one that is allowed to clone a repo will clone 
all.

One simple solution is to split our main project (which is designed with 
modularity in mind) in multiple repositories then we can surely control 
access. But I would like to know if there are other options.

I don't know much about subrepos and have not look into that thoroughly 
yet, but a brief look at the docs does not seem to make it useful for 
our purpose (eg: can I have an .hgrc on a sub-repository basis). The aim 
is to have a user access only a subrepo and push/pull/clone/read that 
only, eg no aceess to other subrepos or to an eventual repo up in the 
hierarchy.

I would like to know what are your suggestion for this scenario,

thanks in advance and best regards,


Paolo



More information about the Mercurial mailing list