From e99416456afd4aa8bde42016826f9a345291cbf3 Mon Sep 17 00:00:00 2001 From: Matthew Poletiek Date: Tue, 8 Dec 2020 21:03:16 -0600 Subject: Initial Commit --- tools/check_for_bug.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tools/check_for_bug.sh (limited to 'tools/check_for_bug.sh') diff --git a/tools/check_for_bug.sh b/tools/check_for_bug.sh new file mode 100755 index 0000000..c8b042d --- /dev/null +++ b/tools/check_for_bug.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +# This checks a given revision to make sure that it has a bug number +# in it, of the form "#123". It should be used in your pretxncommit +# hook + +hg log -r $1 --template {desc} | egrep -q "\#[0-9]+" -- cgit v1.2.3