2013-03-25 58 views
0

我的mercurial主要回購存在問題。我的同事創建了一堆依賴關係的子庫,從那以後,我無法更新我的本地回購。我決定嘗試在一個空的目錄結賬,但我也有同樣的錯誤:添加subrepos後hg克隆失敗

hg clone https://[email protected]/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 

「樂fichierspÚcifiÚEST introuvable」的意思是「指定的文件不能被發現」,但該消息是法語,所以必須來自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 

任何人不會有什麼事的想法?

+0

你的計算機上安裝了git嗎?看來subrepo是一個git倉庫。 – 2013-03-25 16:24:21

+0

是的,我已經安裝了git。你認爲HG不能找到git,那會是問題的根源嗎? – Dinaiz 2013-03-25 16:42:46

回答

0

事實上,問題那是因爲hg找不到git。 我剛剛意識到git不在我的PATH上,所以我解決了這個問題,並且一切正常。

解決方案很簡單,但錯誤信息並不明確。

0

這裏的主要問題是Bitbucket(Mercurial託管世界中沒有人真的)無法支持和處理嵌套的存儲庫(和subrepos出於同樣的原因),而不是subrepos的Git性質。對於BB subrepos可以只有兄妹superrepo

爲了避免這種類型的問題,你必須使用額外[subpaths]破解,described on Subrepository Wiki-page爲水銀2. *和this message