5/13/2013

Push to multiple remote repositories from a single local repo in Mercurial

You can set multiple remote repository aliases in the [paths] section of the repository configuration file. This file is in .hg/hgrc, and you would add paths like this:
[paths]
default = http://your-default-repo.com/repo
2nd = http://your-second-repo.com/repo
Then you would run hg push 2nd to push to your second repo and hg push to push to your default repo. 
Unfortunately its not possible to run  hg push * to push to all remote hosts at once, you have to specify 
each push destination one by one.

No comments: