#!/bin/sh set -e cd ~hg mkdir -p repos/hgadmin .ssh cd repos/hgadmin hg init . cp /usr/local/lib/mercurial-server/hgadmin-hgrc .hg/hgrc