There is no syntax like the one you suggest -- may I ask where you got it from? I would love to improve the documentation, so please let us know (preferably on the Mercurial mailinglist) how we can improve the output of hg help push
.
As for your question, then I agree with Greg -- you seem to have an unneeded clone. Often, you'll only have a single other clone to push/pull from. When you do
hg clone http://example.org/foo foo-clone
then foo-clone
will have http://example.org/foo
as its default push/pull path. This means that a simple
hg pull
inside of foo-clone
is enough to pull the latest changes from http://example.org/foo
.
The default path is stored in foo-clone/.hg/hgrc
and you are welcome to add other paths and/or change the default. So the hgrc
file may look like this:
[paths]
default = http://example.org/foo
alice = http://other-domain.org/foo
experiement = /home/me/foo-experiment
You can then use hg pull alice
to get her changes or hg push experiment
to push to your own local experimental clone.
These are just shortcuts, you can always push/pull using an explicit URL:
hg pull http://bobs-world.org/foo
works as well, if Bob has configured his webserver to serve a clone of the foo
repository.
I hope this helps a bit :-)