Examine and manipulate default path settings: defpath
"defpath" is a Mercurial extension to display or change the default and default-push paths of the current repository.
For more information, run hg help defpath after installing the extension, which is here.
To enable in your ~/.hgrc:
[extensions] defpath = /path/to/defpath.py
There is one configuration setting:
[defpath] username = foo Sets username for ssh push URLs to "foo" (-u option)