我可以 hg 从 BitBucket 克隆一个 git 存储库吗?

Can I hg clone a git repository from BitBucket?

我正在尝试使用 BitBucket git 存储库,但我个人更喜欢使用 hg。

这个有效:

git clone https://myuser@bitbucket.org/projectuser/project.git

它提示我输入密码,然后按预期克隆存储库。

但是,hg 不起作用:

hg clone https://myuser@bitbucket.org/projectuser/project.git

这给了我一个 404 错误。

我确实安装了 hggit 扩展。如果我首先使用 git 在本地克隆,然后我可以将 git 存储库克隆到一个 hg 存储库——克隆我的本地驱动器——并且大概我可以从本地 hg 存储库推回到本地 git 存储库。

我只是更喜欢 pull/push 直接使用来自 hg 的 bitbucket git 存储库。有办法吗?

对于访问协议,Mercurial 和 Git 的存储库可以共享 (http/s/ + ssh),为了唯一标识远程端的类型,使用特殊类型的协议 - git+real-protocol://

GiHub 上的 SSH-repo 示例(我只是没有 https-URL 在手)

>hg clone git+ssh://git@github.com/lazybadger/Fiver-l10n.git
destination directory: Fiver-l10n
importing git objects into hg
updating to branch default
19 files updated, 0 files merged, 0 files removed, 0 files unresolved

与纯 SSH-URL

相比
>hg clone ssh://git@github.com/lazybadger/Fiver-l10n.git Fiver-SSH
remote: Invalid command: 'hg -R lazybadger/Fiver-l10n.git serve --stdio'
remote:   You appear to be using ssh to clone a git:// URL.
remote:   Make sure your core.gitProxy config option and the
remote:   GIT_PROXY_COMMAND environment variable are NOT set.
abort: no suitable response from remote hg!