hg_require_single_head
author Chris Peyer <cpeyer@adobe.com>
Wed, 11 Aug 2010 12:15:43 -0700
changeset 43 ebbc8a608193715b6ba86815aa042753acbf9d47
parent 40 24e64cfbf4fa5747d7d9cf9c9195239801716b7d
permissions -rwxr-xr-x
tamarin-hook: remove additional argo restricted bugs, add new security bugs for upcoming releases

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