我怎样才能得到“hg pull”? 尊重我的 .hgrc 中的可信用户部分?
我正在与用户 dias
共享一个 Mercurial 存储库,我将信任他,并信任他的生命和数据。 因此,我将其添加
[trusted]
users = dias, nr
到我的 ~/.hgrc
文件中。 但是,当我使用 hg pull -v
从远程存储库拉取时,我总是收到此消息:(
remote: Not trusting file /r/c--/papers/gentileset-popl2010/.hg/hgrc from untrusted user dias, group c--
remote: Not trusting file /r/c--/papers/gentileset-popl2010/.hg/hgrc from untrusted user dias, group c--
我不知道为什么该消息出现两次。)
如何向 Mercurial 解释我真的想信任这个文件吗?
I'm sharing a Mercurial repo with a user dias
, whom I would trust with my life as well as my data. I therefore added
[trusted]
users = dias, nr
to my ~/.hgrc
file. However, when I pull from a remote repo with hg pull -v
, I always get this message:
remote: Not trusting file /r/c--/papers/gentileset-popl2010/.hg/hgrc from untrusted user dias, group c--
remote: Not trusting file /r/c--/papers/gentileset-popl2010/.hg/hgrc from untrusted user dias, group c--
(I don't know why the message appears twice.)
How to I explain to Mercurial that I really want to trust this file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
未在远程计算机上建立信任,并且本地 .hgrc 仅影响本地计算机上的用户。 将信任部分行放入远程 .hgrc 中(远程存储库所在计算机上的主目录中)。 当然,假设您使用的是“ssh://”远程 URL。 如果您使用“http://”URL 访问存储库,那么远程计算机上的 apache(或 wwwuser 或其他)用户的 .hgrc 需要断言信任。
It's on the remote machine that the trust isn't established, and your local .hgrc only affects users on the local machine. Put the trust section line in your remote .hgrc (in your homedir on the machine where the remote repository lives). That, of course, assumes you're using 'ssh://' remote URLs. If you're using 'http://' URLs to access the repository then it's the .hgrc of the apache (or wwwuser or whatever) user on the remote machine that needs to assert trust.