Mercurial中的ACL

我正在尝试在Mercurial中使用ACL。现在,我并不认为它会起作用,因为我正在使用hg 1.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
目前,我只是在一个很小的非服务器仓库上做这个,但最终这将是一个普通的大型HTTPS服务器... 谢谢 编辑:[更改了hgrc文件] 好的,现在我好像是那里的1/2。当我试图推动一个我不被允许的分支时,我得到:
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]但没有任何东西......我认为branches.allow会取代允许,但我猜不是。 谢谢。!     

要回复问题请先登录注册