hg_require_single_head
author Ehsan Akhgari <ehsan@mozilla.com>
Mon, 05 May 2014 11:23:12 -0400
changeset 188 94e6623eb57646b4e7fd4c13b1eb520ffbe2c956
parent 40 24e64cfbf4fa5747d7d9cf9c9195239801716b7d
permissions -rwxr-xr-x
Bug 1005920 - Make the prevent_webidl_changes hook ignore backouts; r=ted

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