#!/bin/sh set -e user=$(whoami) /usr/local/lib/mercurial-server/init/break-in/create-breakin-repository cd hgadmin mkdir -p keys ssh-add -L > keys/$user echo "init user=$user" > hg-ssh-access.conf hg add keys/$user hg-ssh-access.conf hg commit -m "Give all access only to user $user" hg push