setting up default push target?

Alexis S. L. Carvalho alexis at cecm.usp.br
Sun Jul 31 00:14:29 UTC 2005


Thus spake Sean Dague:
> Is there a way to set up a default push target for a tree?  I'd like to cut
> down on the need to add a full url after hg push on one of my trees that I
> am always pushing to the same place.

You can define symbolic names for repositories by putting something like
this in your ~/.hgrc or .hg/hgrc :

[paths]
mercurial = http://selenic.com/hg/

See hgrc(5) for more info.

Also, "hg pull" is equivalent to "hg pull default" and "hg push" is
equivalent to "hg push default-push", so you can just define
"default-push" to whatever repository is your default push target.

Alexis



More information about the Mercurial mailing list