External repositories, when "added" to your MacHg documents, are included just as references. Once you have a server reference in your document, you will then be able to clone (copy) the repository on the server, push (upload) changes from your computer to that server or pull (download) changes from that server to your computer.
Choose Repository > "Add Server Repository...", or right-click in the left sidebar and choose "Add Server Repository..."
In the dialog that appears, enter the URL for the desired server into the field "Server URL". Here are some examples of standard URLs
ssh://hg@bitbucket.org/durin42/hgsubversion/
http://selenic.com/repo/hello
https://user:pass@somehost/somefolder/
In the dialog that appears, enter a short name of your choosing to help you identify the external repository. This short name will be used in the left sidebar and in other places to refer to this external repository.
Once you have entered a shortname and Server URL the connection will be automatically tested. You can however click the small button labeled 'test' to test the connection to the server in the terminal. This is sometimes useful to diagnose problems.
Important: Removing a repository just removes the reference to the repository. It doesn't actually move the folder of files to the trash, or remove the repository from the server. However, when deleting a local repository, you are given the option of moving the actual repository (the folder of files on your machine) to the trash. Choose this option with care.
Note:If you store the password directly in the "Server URL" field, the password will be stored in cleartext in your MacHg document. The password will still always be sent in an encrypted form if you are using https or ssh since this is part of the protocol. You can, if desired, store your password in the system keychain by checking the option 'Use Password:'.