20130724 pushing to multiple hg repositories - plembo/onemoretech GitHub Wiki

title: Pushing to multiple hg repositories link: https://onemoretech.wordpress.com/2013/07/24/pushing-to-multiple-hg-repositories/ author: phil2nc description: post_id: 6137 created: 2013/07/24 12:30:28 created_gmt: 2013/07/24 16:30:28 comment_status: closed post_name: pushing-to-multiple-hg-repositories status: publish post_type: post

Pushing to multiple hg repositories

Pushing to multiple Mercurial repositories is just a matter of adding a line (or two, or three, etc.) to a local repository's .hg/hgrc. Just recently created a private repo up on Bitbucket to facilitate collaboration with one of our global development teams. Configuring your local copy of a repo to allow pushing to multiple remote repositories is pretty simple: all you have to do is add a definition in .hg/hgrc under [paths], this: [code language="bash"] [paths] default = http://sourcecontrol.example.com/hgweb/newproject bitbucket = https://[email protected]/bigcorpdev/newproject [/code] Push to the "default" remote repo with a simple: [code language="bash" gutter="false"] hg push [/code] To select Bitbucket instead you'd do this: [code language="bash" gutter="false"] hg push bitbucket [/code] That's all there is to it!

Copyright 2004-2019 Phil Lembo