How set the default repository

Mercurial

Mercurial Problem Overview


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

Mercurial Solutions


Solution 1 - Mercurial

It's in the .hg/hgrc file.

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestioncethView Question on Stackoverflow
Solution 1 - MercurialmoswaldView Answer on Stackoverflow