summaryrefslogtreecommitdiff
path: root/tools/check_for_bug.sh
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-03-31 17:57:07 +0200
committerChristoph Berg <myon@debian.org>2020-03-31 17:57:07 +0200
commitc2bdd8f8d96bf5329672163cc0905a22589d26d3 (patch)
tree76ce2d78c98a958f97dfb6128fee9c529a2a55aa /tools/check_for_bug.sh
parentb255867dd3e05fff714c5d3325c02596bf5854c8 (diff)
New upstream version 20200227+py3+20200213upstream/20200227+py3+20200213
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]+"