Changes

Jump to: navigation, search

Mercurial-nexj

988 bytes added, 12:44, 19 November 2010
Notes
* Webserver: To start a web server of a specific repository, do: <code> hg serve --port 8000 </code> and open the domain name with port number in a browser, or right click on the folder and use TortoiseHg Web Server option.
* using [http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html templates] for getting customized output
 
* Remote Repository
:On the other hand, if the error message is remote: bash: line 1: hg: command not found, the problem is that the environment used by ssh does not have hg in its PATH. There are two ways to deal with this problem:
::In your ~/.hgrc file, set a remotecmd value in the [ui] section giving the exact path to hg.
::On the server, create a ~/.ssh/environment file that defines an appropriate PATH, and add PermitUserEnvironment yes to /etc/sshd_config.
:I get an "ssl required" error message when trying to push changes
:That's because allowing anonymous, unauthenticated HTTP clients to push changes into your repository would be a huge security hole. If you are on a private network and you know that all HTTP clients are trustworthy, you can add
<code>
[web]
push_ssl = false
</code>
to .hg/hgrc on the server-side repository. (See also HgWebDirStepByStep.)
There's a reason for requiring SSL, however. If you do not trust the network you are using do not change this.
==Challenges==
1
edit

Navigation menu