2011-07-13 89 views
1

只是要注意:這個問題是只有有關使用水銀服務器dotencode財產

重現步驟分享善變:

  1. 創建新的存儲庫與hg init
  2. 嘗試通過mercurial-server將其克隆:

    hg clone ssh://[email protected]/test2 . 
    remote: abort: There is no Mercurial repository here (.hg not found)! 
    прервано: no suitable response from remote hg! 
    
  3. 編輯.hg/requires文件,刪除dotencode財產

  4. 重複步驟2:

    hg clone ssh://[email protected]/test2 . 
    изменений не найдено 
    updating to branch default 
    0 files updated, 0 files merged, 0 files removed, 0 files unresolved 
    

任何想法,爲什麼它正在發生,我怎麼能解決這個問題?

ps:它安裝了mercurial 1.9,命令從同一臺機器執行。

回答

1

這發生的原因是:

  1. 我不得不同時安裝在/usr善變站點包(新的,從1.9)和/usr/local(歲,來自1.6)。並且hg-ssh採取了舊的。

  2. hg-ssh需要修補一點

    dispatch.dispatch(['init', repo]) 
    

    dispatch.dispatch(dispatch.request(['init', repo])) 
    

    dispatch.dispatch(['-R', repo, 'serve', '--stdio']) 
    

    被替換

    dispatch.dispatch(dispatch.request(['-R', repo, 'serve', '--stdio'])) 
    

    相應

+0

或者只是從1.9更新hg-ssh。 –

+0

@Idan K:mercurial-server中的'hg-ssh'是一個巨大的文件,不等於原始文件 – zerkms

1

最新善變服務器,1.2版釋放,修復此問題。

+0

我希望它*現在* ;-)但是沒有1.2那個時間 – zerkms

+0

1.2只出現了幾個幾天前。沒有批評意圖,我向你保證,我只是想確保這個網頁有最新的信息!如果不清楚,我是mercurial-server的作者。 –

+0

是的,我知道你是。我個人通過電子郵件發送了這個問題及其解決方案,但您沒有回覆我:-( – zerkms