Is there a way to get users and groups for mercurial repository from remote

93 Views Asked by At

Is there a way to get users and groups for mercurial repository from remote? I am a newbie to mercurial world and not being able to get much details on this.

I wish to get and set the groups and users on a repository from remote (application).

The mercurial server is using acl extension.

2

There are 2 best solutions below

1
On

You can fetch the users that have worked on the current repo with

hg log --template "{author}\n"

However, this will return many duplicates, so you may want to pipe to uniq:

hg log --template "{author}\n" | uniq
0
On

Any type of access restrictions like group permissions would have to be installed outside of Mercurial, like setting up a password-protected network share on which you put the main repository or something.

For ACL look here: Fine Grained ACLs For Mercurial On Own Server or here https://stackoverflow.com/search?q=mercurial+acl

And then there's the manual: https://www.mercurial-scm.org/wiki/PublishingRepositories and https://www.mercurial-scm.org/wiki/AuthorizingUsers