#!/bin/sh # WARNING: this must be run from the hg user's home directory set -e cp $1/init/dot-mercurial-server .mercurial-server mkdir -p repos/hgadmin .ssh cd repos/hgadmin hg init . cp $1/init/hgadmin-hgrc .hg/hgrc