【问题标题】:How to use local paths to repositories on hard disk in hgrc?如何在 hgrc 中使用本地路径到硬盘上的存储库?
【发布时间】:2019-03-11 11:51:29
【问题描述】:

我在本地机器上有存储库C:\repo\my_proj

我想为我的存储库添加路径以在TortoiseHG Workbanch中使用

如果我在文件 <work_place>\.hg\hgrc 中输入我的配置

[paths]
C:\repo\my_proj

应用程序正在发送错误消息:

没有为此存储库配置有效的默认远程存储库 URL 或路径。

请在同步小部件上键入并保存远程存储库路径

但是当我在我的操作系统上使用终端 GIT-BASH 时一切正常

hg pull /c/repo/my_proj/

如何使用正确的语法在hgrc 中添加本地存储库的路径?

关于软件:

Mercurial 分布式 SCM(4.9 版)

Windows 10 x64

【问题讨论】:

    标签: mercurial repository tortoisehg msys2


    【解决方案1】:

    解决了。在 Windows 上使用的示例语法:

    [paths]
    file:///c:/repo/my_proj/
    

    [paths]
    repo = file:///c:/repo/my_proj/
    

    UPD:

    [paths]
    default = S:\repo\my_proj
    

    【讨论】:

      猜你喜欢
      • 2011-08-08
      • 2016-09-20
      • 2011-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-02
      • 2013-02-26
      • 2017-12-20
      相关资源
      最近更新 更多