tags:

views:

28

answers:

1

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
Thanks. But may be there is any way to set it from command prompt?
demas
@demas, yes: `echo -e "[paths]\ndefault = http://myserver/hg/repo1\ndefault-push = ../mytestrepo" >> .hg/hgrc`
tonfa
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