Search code examples
mercurial

How set the default repository


How can I set default remote repository for mercurial local repository?


Solution

  • It's in the .hg/hgrc file.

    [paths]
    default = https://myserver/hg/repo1
    default:pushurl = /home/me/mytestrepo