0

我正在使用 http 为 HG 中的两个分支提供服务。

我需要一个用户只能访问某个分支。

如何拒绝使用 AclExtension 克隆精确分支?

我的 .hg/hgrc 是

pretxnchangegroup = python:hgext.acl.hook

[acl]
sources = http, pull, push

[acl.allow]
* = admin #admin has full access
release = baduser #baduser has access only to release branch

[acl.deny.branches]
default = baduser #deny this branch for user baduser

这行不通。

4

0 回答 0