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 ファイルを変更] OK、今は 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
だから、私はまだプッシュすることができないようです...何かアイデアはありますか?