src/init/hginit
author Paul Crowley <paul@lshift.net>
Mon, 09 Nov 2009 13:23:33 +0000
changeset 166 d7e6f114e8e4
parent 165 3606d60b07e5
child 168 f9bf8f84df7f
permissions -rwxr-xr-x
Need dot-mercurial-server file itself

#!/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