hg_require_single_head
author Ted Mielczarek <ted.mielczarek@gmail.com>
Fri, 21 Nov 2008 07:12:12 -0500
changeset 14 7c46cd9e744655a241b58d59fe45c470073109d1
parent 0 e01e14e3215185c1c06780e06fdac2369300b308
child 40 24e64cfbf4fa5747d7d9cf9c9195239801716b7d
permissions -rwxr-xr-x
add a hgignore

#!/bin/sh

if test $(hg heads --template 'Test_Head\n' | grep -c "^Test_Head") != "1"; then
    printf "You may not push multiple heads to this repository.\n" 1>&2;
    exit 1;
fi