When working with Mercurial, it is often nice to publish your changes on a server so others can examine and work with them as well. If you have commit access to CVS, you should have an LDAP account, and that should allow you to push to hg.mozilla.org. If you do, you can create clones in the
/users directory and share them with others.
So you don't need to type your username everytime, Add these lines to
Host hg.mozilla.org User email@example.com
Creating a Clone
It is a relatively easy process to create your own clone. It will be visible via HTTP at
To do this, run the following command:
ssh hg.mozilla.org clone my-clone1
my-clone1 is the name of the new clone you want to create, not the repository you are trying to clone from. An interactive script will run, prompting you to make some choices. When the script is finished, ssh will exit.
Examining Clones Via the Web
It may take a while for your clone to show up because of some caching mechanisms that have been put in place. It should show up pretty quickly though, and you'll be able to browse history via a web interface.
Others can also pull changes via http:
hg clone http://hg.mozilla.org/users/your-hg_username.domain/my-clone1
To push changes, use ssh:
hg push ssh://hg.mozilla.org/users/your-hg_username.domain/my-clone1
You may also want to add that path to the repository's hgrc, so you don't have to type it every time. Put something like this in
[paths] default-push: ssh://hg.mozilla.org/users/your-hg_username.domain/my-clone1