Search code examples
mercurial

Mercurial: no ~/.hgrc file


I am trying to go though this tutorial that says:


Enable SSH compression for Mercurial

Edit the Mercurial global configuration file (~/.hgrc). Add the following line to the UI section:

ssh = ssh -C


But there is no that file in my system. HG of course is installed.


Solution

  • It is not there by default. You don't need it to exist — it just can exist to customize how you use Mercurial. You just need to create a .hgrc file in your home directory and it should work.

    Heres a great intro post: http://hgtip.com/tips/beginner/2009-09-30-configuring-mercurial