acl.allow 不适用于 Mercurial
当我尝试在 Ubuntu 计算机上的 .hg/hgrc
文件中应用一些身份验证时,它不起作用。
我已将以下代码添加到 Ubuntu 上的 hgrc
文件中。
[web]
allow_push=*
allow_read=*
push_ssl =false
[hooks]
pretxnchangegroup.acl=python:hgext.acl.hook
[acl.allow]
/home/test/testrepository/*=myid
当我将一些数据从 Windows 存储库推送到 Ubuntu 上的 testrepository 时,给出以下消息
pushing to http://ubantuip:8000
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
remote: error: pretxnchangegroup.acl hook failed: acl: access denied for changes
et 69f00e372c67
remote: transaction abort!
remote: rollback completed
remote: abort: acl: access denied for changeset 69f00e372c67
,为什么我无法推送更改?
When I am trying to apply some authentication in .hg/hgrc
file on Ubuntu machine its not working.
I have added below code to hgrc
file on Ubuntu
[web]
allow_push=*
allow_read=*
push_ssl =false
[hooks]
pretxnchangegroup.acl=python:hgext.acl.hook
[acl.allow]
/home/test/testrepository/*=myid
When I am pushing some data from my Windows repository to testrepository on Ubuntu giving below message
pushing to http://ubantuip:8000
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
remote: error: pretxnchangegroup.acl hook failed: acl: access denied for changes
et 69f00e372c67
remote: transaction abort!
remote: rollback completed
remote: abort: acl: access denied for changeset 69f00e372c67
why I am not able to push the changes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
[acl.allow]
中的路径相对于存储库的根目录。它们的用途如下:您在 doc 存储库下授予“myid”访问权限:您在配置文件中使用了绝对路径。
The paths in the
[acl.allow]
are relative to the root of the repository. They are meant to be used like this where you give "myid" access to the files under thedoc
repository:You have used an absolute path in your config file.