我想配置Mercurial與Windows服務器(freeSSHd)和客戶端(命令行和TortoiseHG)一起使用。我正在使用最新版本的所有內容...全部在過去幾天內下載。使用公共密鑰身份驗證,我已經能夠連接到服務器,並且我可以使用plink執行「hg version」並獲得響應,但是當我嘗試從ssh服務器克隆存儲庫時,該命令顯示爲掛。使用-v產出:Mercurial在Windows上的ssh客戶端和服務器
hg -v clone ssh://<username>@<server>//hg/repositoryA testRepositoryA
running "plink.exe -i "<path to private key file>" <username>@<server> "hg -R /hg/repositoryA serve --stdio""
沒有什麼更多的了。直接在服務器上運行hg serve命令會產生一個明顯響應的Mercurial服務器,但客戶端似乎沒有提出任何進一步的請求。
在存儲庫目錄中運行「hg serve」並通過http進行克隆完美運行。
我應該尋找什麼來幫助調試?客戶端(hg和TortoiseHG)沒有發送什麼來繼續請求流?
附加信息: 如果我在目標計算機上更改爲無效的存儲庫,將顯示相應的錯誤,因此看起來遠程hg正在運行並正確評估路徑。
與--debug和--traceback導致運行:
sending hello command
sending between command
它掛在這裏,直到我CTRL-C
Traceback (most recent call last):
File "mercurial\dispatch.pyo", line 46, in _runcatch
File "mercurial\dispatch.pyo", line 452, in _dispatch
File "mercurial\dispatch.pyo", line 320, in runcommand
File "mercurial\dispatch.pyo", line 504, in _runcommand
File "mercurial\dispatch.pyo", line 457, in checkargs
File "mercurial\dispatch.pyo", line 451, in <lambda>
File "mercurial\util.pyo", line 402, in check
File "mercurial\commands.pyo", line 636, in clone
File "mercurial\hg.pyo", line 187, in clone
File "mercurial\hg.pyo", line 63, in repository
File "mercurial\sshrepo.pyo", line 51, in __init__
File "mercurial\sshrepo.pyo", line 73, in validate_repo
KeyboardInterrupt
interrupted!
應對瑞恩:雖然目前沒有出現任何CPU使用率或增加服務器上的內存使用量。它似乎在等待客戶發送請求或類似的東西。
11/19/2009:更多信息: 問題肯定存在於freeSSHd/server端。使用相同的鍵集通過ssh連接到bitbucket可以正常工作。仍在努力。
嘗試運行與「--debug」和「--traceback」選項「汞克隆」。這可能會讓你更加了解問題的原因。 – 2009-11-11 16:52:48
Hrm,客戶端或服務器端的mercurial進程中是否有任何CPU活動?接口上的任何網絡流量? (只是在黑暗中刺...) – 2009-11-12 05:16:19
我有同樣的問題...確保mercurial的服務器版本是最新的。 – nlucaroni 2010-01-29 13:13:47