hg_require_single_head
author Ehsan Akhgari <ehsan@mozilla.com>
Thu, 22 May 2014 09:20:34 -0400
changeset 194 7d2946588c3706c9836e75d8e39da33efc050a95
parent 40 24e64cfbf4fa5747d7d9cf9c9195239801716b7d
permissions -rwxr-xr-x
Bug 1014397 - Allow sr= in addition to r= in the prevent_webidl_changes hook; 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