Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial hg克隆在添加子repo后失败_Mercurial_Mercurial Subrepos - Fatal编程技术网

Mercurial hg克隆在添加子repo后失败

Mercurial hg克隆在添加子repo后失败,mercurial,mercurial-subrepos,Mercurial,Mercurial Subrepos,我的mercurial主回购协议有问题。我的同事为依赖关系创建了一系列子存储库,从那以后,我无法更新我的本地回购。我决定尝试在空目录中签出,但我有相同的错误: hg clone https://user@bitbucket.org/company/repo http authorization required realm: Bitbucket.org HTTP user: user password: destination directory: repo requesting all cha

我的mercurial主回购协议有问题。我的同事为依赖关系创建了一系列子存储库,从那以后,我无法更新我的本地回购。我决定尝试在空目录中签出,但我有相同的错误:

hg clone https://user@bitbucket.org/company/repo
http authorization required
realm: Bitbucket.org HTTP
user: user
password:
destination directory: repo
requesting all changes
adding changesets
adding manifests
adding file changes
added 1116 changesets with 12636 changes to 2410 files
updating to branch default
cloning subrepo deps/gtest from https://bitbucket.org/company/gtest.git
abort: Le fichier spÚcifiÚ est introuvable
“Le fichier spÚcifiÚest introvable”表示“找不到指定的文件”,但该消息是法语,因此必须来自Windows,因为如果它来自hg,则将是英语

下面是使用--debug选项时的情况

updating: .hgignore 1/1274 files (0.08%)
getting .hgignore
updating: .hgsub 2/1274 files (0.16%)
getting .hgsub
updating: .hgsubstate 3/1274 files (0.24%)
getting .hgsubstate
subrepo merge 000000000000+ 4d1310a16bfd 000000000000+
  subrepo deps/gtest: remote added, get https://bitbucket.org/springbeats/gtest.git:a6772271f71672e889776bfe49ec4efd9da036df:git
cloning subrepo deps/gtest from https://bitbucket.org/company/gtest.git
deps/gtest: git clone https://bitbucket.org/company/gtest.git C:\Users\Bob\Documents\Newdir\repo\deps/gtest
abort: Le fichier spÚcifiÚ est introuvable

有人知道发生了什么吗

这里的主要问题是Bitbucket,它(Mercurial托管世界中没有人真的)不能支持和处理嵌套存储库(以及出于同样原因的子repos),而不是子repos的Git特性。对于BB次级回购,只能是超级回购的兄弟姐妹


为了避免此类问题,您必须为Mercurial 2.*使用额外的
[子路径]
hack,而在最初的中,问题是hg找不到git。 我刚刚意识到git不在我的道路上,所以我修复了它,一切都正常了


解决方案很简单,但错误消息不清楚。

您的计算机上安装了git吗?看起来subrepo是一个git存储库。是的,我已经安装了git。你认为HG找不到git,这就是问题的根源吗?