复制外部的 Mercurial 资源库

另请参见

在 IDE 中,可以复制并使用外部的 Mercurial 资源库。您可以有效地创建要在 IDE 中使用的“完整”资源库的副本。要执行此操作,您需要对 Mercurial 资源库具有读取访问权限。

复制 Mercurial 资源库:

  1. 选择以下某项操作: 将打开 Mercurial 的“复制其他”向导。
  2. 在向导的“Mercurial 资源库”面板中输入包含连接协议和资源库位置的 URL。
    单击“下一步”。
  3. 在“目标目录”面板中:
  4. 单击“完成”。

IDE 支持以下 Mercurial URL:

协议访问方法示例
file 直接访问资源库(在本地硬盘上) file:///repository_path
http 通过 WebDAV 协议访问支持 Mercurial 的服务器 http://[username[:password]@]hostname/repository_path
https 通过使用 SSL 加密的 HTTP 协议进行访问 https://[username[:password]@]hostname/repository_path
static-http 通过 HTTP 访问虽然有点慢,但是仍然可以访问 Mercurial 资源库,您只需使用 Web 服务器将 .hg 目录发布为静态内容即可 static-http://hostname/repository_path
ssh 通过 SSH 进行访问 ssh://hostname/repository_path

SSH 和 Mercurial 结合使用时的注意事项:

另请参见
使用 Mercurial

法律声明