#!/bin/sh set -e hg clone -e /usr/local/lib/hg-admin-tools/ssh-replacement ssh://localhost/hgadmin cd hgadmin cat >> .hg/hgrc << __END__ [ui] ssh = /usr/local/lib/hg-admin-tools/ssh-replacement __END__ echo "cd to hgadmin, make changes and commit"