Mercurial中的ACL

Mercurial中的ACL,mercurial,acl,hgrc,Mercurial,Acl,Hgrc,我正试图让ACL在Mercurial中工作。现在,我不确定它是否会起作用,因为我使用的是HG1.5.1。(我正在努力弄清楚我要找谁来帮我升级) 假设1.5.1将支持它,我的hgrc文件如下所示: [extensions] acl = [hooks] # Use this if you want to check access restrictions at commit time pretxncommit = python:hgext.acl.hook # Use this if you

我正试图让ACL在Mercurial中工作。现在,我不确定它是否会起作用,因为我使用的是HG1.5.1。(我正在努力弄清楚我要找谁来帮我升级)

假设1.5.1将支持它,我的hgrc文件如下所示:

[extensions]
acl =

[hooks]

# Use this if you want to check access restrictions at commit time
pretxncommit = python:hgext.acl.hook

# Use this if you want to check access restrictions for pull, push,
# bundle and serve.
pretxnchangegroup = python:hgext.acl.hook

[acl]
# Check whether the source of incoming changes is in this list where
# "serve" == ssh or http, and "push", "pull" and "bundle" are the
# corresponding hg commands.

sources = serve push pull

我得到:

error: pretxnchangegroup hook failed: acl: access denied for changeset 242c80d5c009
transaction abort!
rollback completed
abort: acl: access denied for changeset 242c80d5c009
目前,我只是在一个小型的非服务器repo上做这件事,但最终这将是在一个普通的大型HTTPS服务器上

谢谢

编辑:[已更改hgrc文件] 好的,现在我好像有一半在那里。当我试图推动不允许的树枝时,我得到:

error: pretxnchangegroup.acl hook failed: acl: user "brian_postow" not allowed on branch "branch-b" (changeset "597eddef10a1")
transaction abort!
rollback completed
abort: acl: user "brian_postow" not allowed on branch "branch-b" (changeset "597eddef10a1")
error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 242c80d5c009
transaction abort!
rollback completed
abort: acl: access denied for changeset 242c80d5c009
这看起来是正确的(也许?)但是,当我从允许我的分支上推时,我得到:

error: pretxnchangegroup.acl hook failed: acl: user "brian_postow" not allowed on branch "branch-b" (changeset "597eddef10a1")
transaction abort!
rollback completed
abort: acl: user "brian_postow" not allowed on branch "branch-b" (changeset "597eddef10a1")
error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 242c80d5c009
transaction abort!
rollback completed
abort: acl: access denied for changeset 242c80d5c009

所以,我似乎仍然无法推动。。。有什么想法吗?

实际上我解决了这个问题。问题是我有[acl allow],但里面什么都没有。。。我以为branchs.allow会取代allow,但我想不会


谢谢

实际上我解决了这个问题。问题是我有[acl allow],但里面什么都没有。。。我以为branchs.allow会取代allow,但我想不会


谢谢

当它工作时和不工作时,按下时,您使用的确切命令是什么。我们可以看到“242c80d5c009”的“hg日志”输出吗。请同时提供配置文件的acl.*部分。当它工作时和不工作时,您在推送时使用的确切命令是什么。我们可以看到“242c80d5c009”的“hg日志”输出吗。请提供配置文件的acl.*部分。