我怎样才能得到“hg pull”? 尊重我的 .hgrc 中的可信用户部分?

发布于 2024-07-26 10:48:36 字数 541 浏览 2 评论 0原文

我正在与用户 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半夏半凉 2024-08-02 10:48:36

未在远程计算机上建立信任,并且本地 .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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文