在 IDE 中,可以复制并使用外部的 Mercurial 资源库。您可以有效地创建要在 IDE 中使用的“完整”资源库的副本。要执行此操作,您需要对 Mercurial 资源库具有读取访问权限。
协议 | 访问方法 | 示例 |
---|---|---|
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 |