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