src/init/hginit
author Paul Crowley <paul@lshift.net>
Mon, 09 Nov 2009 12:15:09 +0000
changeset 165 3606d60b07e5
parent 96 975fb921c3f3
child 168 f9bf8f84df7f
permissions -rwxr-xr-x
Use .mercurial-sever file instead of hardcoding

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