General Information

You can also clone repos using: hg clone https://turing.cs.gmu.edu/hg/[path]

This is an administrator guide for how to set up and maintain shared Mercurial repositories on Turing. You can put your shared repositories anywhere in /home/hg and they'll appear in the web interface. There are more instructions below under "Creating a Repository".

Authentication is required to access all repositories. You use the same username and password as your SSH account to Turing. There is also an anonymous login available:

Username: anonymous

Password: password

Creating a Repository

1. Create the Mercurial repository (in this example, we create a repo called papers/testpaper):

hg init /home/hg/papers/testpaper

Alternative: You can also clone your local repository to the server (don't forget the double-slash in the URL)

The description and contact fields will be what is displayed in the repository web interface. The style and allow_archive fields set up some basic options for displaying the repository and whether you are allowed to download tarballs from it.

The deny_push, deny_read, allow_push, and allow_read directives are how you specify access control. "deny" directives always take priority over "allow" directives, and for MASC usernames, these are specified as either a list of "username@MASC.GMU.EDU" entries or the special entry *, which represents everyone. The anonymous user is "anonymous@MASC.GMU.EDU".

For example, to allow only jmlien and jharri1 access to a repository, you could use the following lines: