我是Mercurial的新手,並試圖將測試文件推送到存儲庫在線。 當我嘗試使用hg push
命令時,我遇到了錯誤消息abort: repository default-push not found!
。 我已經在網上搜索和大部分提到的配置.hg/hgrc文件的答案。 我已經完成並檢查了我的.hg/hgrc文件。它確實有東西如何在Mercurial中解決錯誤消息「abort:repository default-push not found!」?
[paths]
default = https://[email protected]/Alab/analysis
[web]
cacerts = /etc/pki/tls/certs/ca-bundle.crt
爲了澄清我的問題,這裏是我執行的幾個步驟和我得到的錯誤消息。我的機器是安裝了默認Python 2.4.3的RedHat Linux 5服務器。我已經在/home/Cassie/CassieDir/analysis
上建立了Mercurial目錄,並在bitbucket.org上建立了一個存儲庫,作爲用戶名ALab的分析。我輸入了commit
命令和其他hg status
命令。他們都很好。然後,我首先創建一個虛擬文件名爲README,並試圖通過
hg push
錯誤消息在/analysis
目錄推它表明:
abort: certificate checking requires Python 2.6
然後,以避免證書錯誤,我再鍵入
hg push --insecure
該錯誤消息表明作爲
Not trusting file /home/Cassie/CassieDir/analysis/.hg/hgrc from untrusted user Cassie, group Cassie
Not trusting file /home/Cassie/CassieDir/analysis/.hg/hgrc from untrusted user Cassie, group Cassie
Not trusting file /home/Cassie/CassieDir/analysis/.hg/hgrc from untrusted user Cassie, group Cassie
abort: repository default-push not found!
我也輸入了「hg push -vv」,輸出和上面一樣。
非常感謝,請讓我知道是否有任何混淆。
仔細檢查錯別字?也許repostoryName應該是repositoryName? – PeskyGnat 2012-03-09 19:53:04
「hg push -vv」的輸出是什麼? – krtek 2012-03-09 20:08:11
最初,當我做了「hg push」時,它給出了「abort:certificate checking requires Python 2.6」的錯誤信息,所以我使用了「hg push --insecure」命令。但是,做完之後,當我再次推送時,它給了我一個錯誤信息,如「不信任來自不可信用戶Cassie,組Cassie,abort:repository default-push not的文件/home/Cassie/aExperiment/aNewdirectory/.hg/hgrc找到了!」 – Cassie 2012-03-09 20:16:41