hgweb: display different repositories to different users?

265 Views Asked by At

I'd like to host two different sets of private repositories off the same server/vhost, and have users see one set or another depending on their credentials.

Is there an easier way of doing this than hosting two separate hgweb instances with separate user accounts and config files?

1

There are 1 best solutions below

1
On BEST ANSWER

Technically, nothing prevents you from having this line:

allow_read = user1 user2 user3

in .hg/hgrc of half of your repos, and:

allow_read = user4 user5 user6

in the other half. Even to see the repo in the list, the user has to be in the allow_read list.

However, managing this can prove cumbersome.