2013-07-19 35 views
0

我創建.hg沒有找到

local-host $ hg init ~/test/ 

,然後在遠程主機我做了克隆

remote-host $ hg clone ssh://[email protected]/test 

沒有任何問題的一個本地回購。

當我嘗試檢查是否有遠程回購即時得到這個錯誤

remote-host $ cd test 
remote-host $ hg --verbose out 
comparing with ssh://[email protected]/test 
running ssh [email protected] 'hg -R test serve --stdio' 
searching for changes 
no changes found 
remote: abort: no repository found in '/home/user' (.hg not found)! 
remote: abort: no repository found in '/home/user' (.hg not found)! 

傳出更改。如果我承諾在遠程/本地倉庫的任何變化,並將它推即時得到的錯誤,但變化被推動。

兩臺主機都有相同的mercurial版本。

任何想法?

+0

是位於'〜/ test'在遠程機器上的資料庫? – dimo414

+0

可能的重複http://stackoverflow.com/questions/8493733/mercurial-remote-abort-there-is-no-mercurial-repository-here-hg-not-found – Vince

回答

0

你需要讓它知道庫 - 最簡單的就是:

remote-host $ cd ~/test/ 
remote-host $ hg --verbose out 
+0

我想要做「hg --verbose out「在mercurial回購(我更新了示例代碼,用」cd test「來清楚)。 – user2599522

+0

你的倉庫中'ls -al'的輸出是什麼? –

+0

'共12 drwxrwxr-x 3用戶用戶4096 Jun 30 12:45。 drwxrwxr-x 26用戶用戶4096 Jun 30 12:45 .. drwxrwxr-x 3用戶用戶4096 Jun 30 12:45 .hg'(我如何在回覆中進行多行處理?:p) – user2599522