代码之家  ›  专栏  ›  技术社区  ›  Norman Ramsey

我怎样才能在我的.hgrc中获得“hg pull”来表彰受信任的用户部分?

  •  8
  • Norman Ramsey  · 技术社区  · 15 年前

    我正在和一个用户共享一个Mercurial回购协议 dias ,我会用我的生命和数据信任他。因此,我补充说:

    [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解释我真的希望信任此文件?

    1 回复  |  直到 15 年前
        1
  •  9
  •   Ry4an Brase    15 年前

    信任未建立在远程计算机上,而您的本地.hgrc仅影响本地计算机上的用户。在remote.hgrc(远程存储库所在计算机上的homedir)中放置trust部分行。当然,这假设您使用的是“ssh://”远程URL。如果您使用“http://”URL访问存储库,则需要断言信任的是远程计算机上apache(或wwwuser或其他)用户的.hgrc。

    推荐文章