如何获取远程服务器的 hg 路径?

我已经创建了远程回购,以推动我的本地变化通过 ssl。我做了 hg showconfig --debug找到我的远程 hg 路径,但它混乱可以有人告诉我如何确切地找到它是什么。

46356 次浏览

hg paths gives the relationship between each path name and its url.

> hg paths
default = ssh://hg@example.org/repo
local = /local/path/to/repo

hg paths <name> gives the url for the name.

> hg paths default
ssh://hg@example.org/repo


> hg paths local
/local/path/to/repo

BTW, to get just the path names:

> hg paths -q
default
local

and hg paths -q <name> will always result in no output.