How to setup a central repository on a Windows 2008 server

This situation is fairly well documented. Check out the "Collaborating with other people" section of the very useful HG Book.

In short, you can configure ssh access to the Mercurial repository, and limit access to specific users.

Some more reference guides:

  • Multiple Committers Guide
  • TortoiseHg

We have mercurial running on Windows Server 2003 and IIS. It is working well for us.

For access control, you have two main options:

  1. Maintain an access control list for push and pull in the hgrc file for each repository.
  2. Restrict access using IIS integration with Active Domain.

You can mix and match these solutions for even more control.