can't push/pull from mercurial repository - abort: error: An existing connection was forcibly closed by the remote host

空扰寡人 提交于 2019-12-18 05:18:11

问题


I am planning to use mercurial for a new project but I'm having some problem accessing the bitbucket repository. I'm new to mercurial, but I have used git previously.

I get the following error when peforing a hg clone or push:

abort: error: An existing connection was forcibly closed by the remote host

I only have this problem when using my work pc, when accessing the repository from my home pc I can clone and push just fine, any ideas, is there some firewall setting that needs to be configured?

I'm using Mercurial-2.1.2-x64 on windows 7 x64 for both pcs.


回答1:


So I found the source of the error, I had initially installed tortoise hg which had created the following mercurial.ini file in my user directory, once I deleted this file, it resolved the issue. I suppose the problem was that I had specified the repository url instead of an actual http proxy...

# Generated by TortoiseHg settings dialog


[tortoisehg]
cipushafter = 


[http_proxy]
host = https://****@bitbucket.org/****/*** (my repository path)



回答2:


Browse to the project folder in command prompt and run hg rollback.



来源:https://stackoverflow.com/questions/10086576/cant-push-pull-from-mercurial-repository-abort-error-an-existing-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!