How can I set default remote repository for mercurial local repository?
+3
A:
It's in the .hg/hgrc file.
[paths]
default = http://myserver/hg/repo1
default-push = ../mytestrepo
mos
2010-09-27 13:20:44
Thanks. But may be there is any way to set it from command prompt?
demas
2010-09-27 13:33:50
@demas, yes: `echo -e "[paths]\ndefault = http://myserver/hg/repo1\ndefault-push = ../mytestrepo" >> .hg/hgrc`
tonfa
2010-09-27 13:38:31
Yeah, tonfa's right on both counts. You do it by editing a file and if you don't want to pop open an editor you could do it by shell redirect. There's no 'set' command.
Ry4an
2010-09-27 13:56:58