hg_require_single_head
author Mike Hommey <mh+mozilla@glandium.org>
Thu, 28 Apr 2011 16:52:49 +0200
changeset 61 2b48ff549ea95e71dc627eb6c8e49bbb31c73705
parent 40 24e64cfbf4fa5747d7d9cf9c9195239801716b7d
permissions -rwxr-xr-x
Bug 559964 - Add a warning when pushing commits that may fail on try with gcc 4.5. 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