在我当地的mercurial回购中,hgrc在哪里?

Smr*_*ita 3 version-control mercurial

我在目录中有一个名为mercurialTest的本地mercurial repo

/home/xyz/MERCURIAL
Run Code Online (Sandbox Code Playgroud)

我使用mercurial的web服务器(我使用了命令hg serve)服务它.回购可以在

http://xyz-satellite-l640:8000/
Run Code Online (Sandbox Code Playgroud)

我在以下目录中克隆了repo mercurialTest

/home/xyz/MERCURIALWORKERS/workerOne
/home/xyz/MERCURIALWORKERS/workerTwo
Run Code Online (Sandbox Code Playgroud)

现在我在repO MERCURIAL里面,在workerOne里面,我添加了一个名为的文件

mercurialbasics.txt
Run Code Online (Sandbox Code Playgroud)

我添加并提交了该文件.现在我正在尝试将文件推送到

/home/xyz/MERCURIAL
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误

pushing to http://xyz-satellite-l640:8000/
searching for changes
remote: ssl required
Run Code Online (Sandbox Code Playgroud)

根据教程, http://hginit.com/02.html我必须更改位于的hgrc文件中的内容/home/xyz/MERCURIAL

但是我没有看到那个文件.那我究竟做错了什么或者错过了什么?

Von*_*onC 5

正如我之前提到的,您可以通过以下方式修改您为该回购服务的方式:

hg serve --config web.push_ssl=No --config "web.allow_push=*"
Run Code Online (Sandbox Code Playgroud)

hgrc通常在你的家里:~/.hgrc.

请参阅" 发布Mercurial存储库的配置文件位置 ":

hgweb读取像Mercurial那样的全局和特定于存储库的配置文件 - 请参阅hg help config.请注意,它将读取Web服务器运行的用户的.hgrc.

如上所述hg help config,您拥有本地,全局,每用户和系统hgrc文件.

<repo>/.hg/hgrc
$HOME/.hgrc
/etc/mercurial/hgrc
<install-root>/etc/mercurial/hgrc
<install-root>/etc/mercurial/hgrc.d/*.rc
Run Code Online (Sandbox Code Playgroud)