hg_require_single_head
author Aravind Gottipati <aravind@mozilla.com>
Sat, 19 Jun 2010 16:51:35 -0700
changeset 40 24e64cfbf4fa5747d7d9cf9c9195239801716b7d
parent 0 e01e14e3215185c1c06780e06fdac2369300b308
permissions -rwxr-xr-x
Changing the test to -t per https://bugzilla.mozilla.org/show_bug.cgi?id=573264#c8

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