XP-Dev.com Documentation

Switching URLs for Mercurial

To switch your default upstream repository URL for Mercurial, you will need to edit your local clone's .hg/hgrc file:

$ cd /path/to/mercurial/repository/clone
$ vi .hg/hgrc

And change the following:

[paths]
default = <new-url>

For example, to change it to https://xp-dev.com/hg/my-new-repo, that file should be changed to:

[paths]
default = https://xp-dev.com/hg/my-new-repo

Feel free to contact us if you need any assistance.