Kangkan
Kangkan

Reputation: 15571

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

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.

Upvotes: 0

Views: 93

Answers (2)

DanMan
DanMan

Reputation: 11561

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

Upvotes: 1

danielmhanover
danielmhanover

Reputation: 3124

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

Upvotes: 1

Related Questions