Domanda
Sto cercando di far funzionare ACL in Mercurial.Ora, non sono sicuro che funzionerà affatto perché sto usando HG 1.5.1.(Sto lavorando a capire chi devo parlare per ottenere qualcuno per aggiornarlo per me)
Supponendo che 1.5.1 lo supporterà, il mio file HGRC sembra:
[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
Sto ottenendo:
error: pretxnchangegroup hook failed: acl: access denied for changeset 242c80d5c009
transaction abort!
rollback completed
abort: acl: access denied for changeset 242c80d5c009
.
Attualmente, sto solo facendo questo su un piccolo repo non server, ma alla fine questo sarà su un normale server HTTPS normale ...
Grazie
Modifica: [Modificato file HGRC] Ok, ora mi sembra di essere 1/2 lì.Quando provo a spingere su un ramo, non mi è permesso, ottengo:
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")
.
che sembra corretto (forse?) Tuttavia, quando spingo da un ramo che io AM permesso, ottengo:
.
error: pretxnchangegroup.acl hook failed: acl: access denied for changeset 242c80d5c009
transaction abort!
rollback completed
abort: acl: access denied for changeset 242c80d5c009
Allora, non sembra ancora essere in grado di spingere ... qualsiasi idea?
Soluzione
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.!