Mercurial default push repository

by Wolfram Saringer  (2009-07-22)
last change: 2009-07-22

To set the default repository to push changes to open .hg/hgrc within the project and add the following section (replacing the mercurial-server and the project-name parts of the URL appropriatly):

default = ssh://hg@<mercurial-server>/<project-name>

Note that this default entry is created for you each time you clone a remote repository.

You can add more short names to this section to use them in push and pull commands, just replace 'default' with the name like this:

ted = ssh://hg@teds-machine/teds-project

and use them:

hg push ted
hg pull ted

all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.