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
配置phabricator以允许通过http进行推送_Http_Mercurial_Phabricator - Fatal编程技术网

配置phabricator以允许通过http进行推送

配置phabricator以允许通过http进行推送,http,mercurial,phabricator,Http,Mercurial,Phabricator,我想配置Phabricator,这样我就可以通过http进行hg推送 现在我将其配置为ok,在repository页面中显示克隆它的命令,在hosting配置中,我将其设置为Read/Write to http,如下图所示。此外,我还将diffusion.allow-http-auth配置为true,并为我的用户配置了VCS密码 我已经正确地从中进行了拉取,并对本地克隆添加了更改 但当我尝试推送初始历史记录/提交时,hg显示以下错误: % hg push http://*********/dif

我想配置Phabricator,这样我就可以通过http进行hg推送

现在我将其配置为ok,在repository页面中显示克隆它的命令,在hosting配置中,我将其设置为Read/Write to http,如下图所示。此外,我还将diffusion.allow-http-auth配置为true,并为我的用户配置了VCS密码

我已经正确地从中进行了拉取,并对本地克隆添加了更改

但当我尝试推送初始历史记录/提交时,hg显示以下错误:

% hg push http://*********/diffusion/W/web/
pushing to http://*********/diffusion/W/web/
http authorization required
<--- Credentials Ok -->
realm: Phabricator Repositories
abort: operation not supported over http
我做错了什么?Http只能用来拉

注意:我已经知道使用ssh更好,但我无法通过其他无法更改的策略将服务器配置为使用ssh。此外,此问题可能与《扩散用户指南》第部分中的有关,您可以看到一些未反映在说明中的要求

如果计划使用经过身份验证的HTTP,则需要在配置中设置diffusion.allow-HTTP-auth。如果您不打算使用HTTP,或者只打算使用匿名HTTP,则可以禁用此设置

如果您计划使用经过身份验证的HTTP,还需要在设置->VCS密码中配置VCS密码。这与您的主密码不同,主要是出于安全原因


影响我的是服务器中mercurial的版本太旧。我已经将其更新为Hg3.0.1,现在我可以通过http进行推送

在Phabricator中,不同版本的mercurial发生了以下情况:

版本1.4到1.8将拒绝带中止的推送:http不支持操作。 版本1.9到2.1接受推送。 2.2版在尝试推送时溢出此错误消息,内容将不会被推送。 版本2.3到3.0接受推送。
您可以在中看到相关任务。

是的,我已经完成了,但我忘了在问题中提到它。正如我现在在问题中所说,我已经可以克隆它了。