hg_require_single_head
author Mark Banner <bugzilla@standard8.plus.com>
Thu, 01 Nov 2012 16:00:33 +0000
changeset 145 b0866c8f9c377ae34cd7f1ac73be1d7456cc3548
parent 40 24e64cfbf4fa5747d7d9cf9c9195239801716b7d
permissions -rwxr-xr-x
Bug 807670 comm-central hooks should now treat calendar/ checkins the same as Thunderbird ones. r=Fallen

#!/bin/sh

if test $(hg heads -t --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