aboutsummaryrefslogtreecommitdiff
path: root/tools/check_for_bug.sh
diff options
context:
space:
mode:
authorMatthew Poletiek <matthew.poletiek@gmail.com>2020-12-08 21:03:16 -0600
committerMatthew Poletiek <matthew.poletiek@gmail.com>2020-12-08 21:03:16 -0600
commite99416456afd4aa8bde42016826f9a345291cbf3 (patch)
treea7a95639cd1cb5dbe2d91a2ca8e8defafac4296d /tools/check_for_bug.sh
parent194cf4e5e0b6a2811103a9b739a72b9afe2b886c (diff)
downloadchirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.gz
chirp-e99416456afd4aa8bde42016826f9a345291cbf3.tar.xz
Initial Commit
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]+"