【问题标题】:How can I get 'hg pull' to honor trusted-users section in my .hgrc?如何在我的 .hgrc 中获得 'hg pull' 以尊重受信任的用户部分?
【发布时间】:2009-07-07 01:43:13
【问题描述】:

我正在与用户 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 解释我真的想信任这个文件?

【问题讨论】:

    标签: mercurial hgrc


    【解决方案1】:

    在远程机器上没有建立信任,你的本地 .hgrc 只影响本地机器上的用户。将信任部分行放在远程 .hgrc 中(在远程存储库所在机器上的 homedir 中)。当然,这假设您使用的是“ssh://”远程 URL。如果您使用 'http://' URL 来访问存储库,那么需要声明信任的是远程计算机上的 apache(或 wwwuser 或其他)用户的 .hgrc。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-20
      • 2013-01-09
      • 2010-10-30
      • 2016-09-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多