0

I have a problem with my mercurial main repo. My colleague created a bunch of subrepositories for dependancies, and since then, I can't update my local repo. I decided to try a checkout in an empty directory but I have the same error :

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 introuvable" means "The specified file cannot be found", but the message is in french so it must come from Windows, because if it came from hg it would be in english

Here is what I have when using the --debug option

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

Does anyone has an idea of what going on ?

4

2 回答 2

0

事实上,问题在于 hg 找不到 git。我刚刚意识到 git 不在我的 PATH 上,所以我修复了它并且一切正常。

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

于 2013-03-28T15:09:29.363 回答
0

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

为了避免此类问题,您必须使用额外的[subpaths]hack,如Mercurial 2.* 的 Subrepository Wiki-page 和此消息中所述

于 2013-03-26T00:16:45.110 回答