Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mercurial 如何使用http/ssh协议从克隆存储库推送到远程服务器响应?_Mercurial_Push - Fatal编程技术网

Mercurial 如何使用http/ssh协议从克隆存储库推送到远程服务器响应?

Mercurial 如何使用http/ssh协议从克隆存储库推送到远程服务器响应?,mercurial,push,Mercurial,Push,我有以下windows配置: Windows计算机“A”具有mercurial存储库。 hg服务器正在“A”http上运行 我在windows计算机“B”上创建了“A”的克隆 在将我的更改添加并提交到克隆后,我想将这些更改推送到机器“A”。尝试了TortoiseHg:synchronize->Push选项,但出现以下错误: pushing to http://praveen@IP Addr:8001/ searching for changes 1 changesets found ssl re

我有以下windows配置:

Windows计算机“A”具有mercurial存储库。 hg服务器正在“A”http上运行

我在windows计算机“B”上创建了“A”的克隆 在将我的更改添加并提交到克隆后,我想将这些更改推送到机器“A”。尝试了TortoiseHg:synchronize->Push选项,但出现以下错误:

pushing to http://praveen@IP Addr:8001/
searching for changes
1 changesets found
ssl required
[command returned code 1] 
然后我在机器“A”/.hg/hgrc文件中做了以下更改

  [web]
  push_ssl = False
  allow_push = *
我再次尝试从机器“B”上推hg,但得到了相同的错误

谁能解决我的问题

提前谢谢


Praveen

我觉得你做的很对。我能想到两件事可能是错的

  • 更改
    hgrc
    文件后,是否重新启动了上的HTTP服务器
  • 二,。我不知道
    hgrc
    是否区分大小写,但请按以下方式尝试设置

    `push_ssl = false`
    

    因为我一直看到它是这样写的

    我重新启动了机器“A”的HTTP服务器并解决了问题。现在可以从远程克隆推送http协议。非常感谢。布尔值不区分大小写,您可以使用“1”、“是”、“真”、“开”表示真,使用“0”、“否”、“假”、“关”表示假。谢谢您的澄清。我不认为它是区分大小写的,所以现在很高兴能确定。