aboutsummaryrefslogtreecommitdiff
path: root/tools/check_for_bug.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check_for_bug.sh')
-rwxr-xr-xtools/check_for_bug.sh7
1 files changed, 7 insertions, 0 deletions
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]+"