문제

나는 수은에서 일하고있는 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
.

etc

I DET :

error: pretxnchangegroup hook failed: acl: access denied for changeset 242c80d5c009
transaction abort!
rollback completed
abort: acl: access denied for changeset 242c80d5c009
.

현재, 나는 작은 비 서버 repo에서 이것을하고 있지만, 결국 이것은 일반적인 대형 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")
.

가 올바른 것처럼 보이는 (어쩌면?) 그러나 내가 am> 의 지점에서 밀 때, 나는 얻을 수 있습니다 :

error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 242c80d5c009
transaction abort!
rollback completed
abort: acl: access denied for changeset 242c80d5c009
.

그래서, 나는 아직도 밀어 넣을 수있는 것으로 보이지 않는다 ... 어떤 아이디어도

도움이 되었습니까?

해결책

Actually I solved this problem. The problem was that I had [acl allow] but nothing in it... I thought that branches.allow would supercede allow, but I guess not.

thanks.!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top