Mercurial Support

Support mercurial repositories for templates.