aboutsummaryrefslogtreecommitdiff
path: root/tools/check_for_bug.sh
blob: c8b042d63df6639b4ce8ed0001804c94e99ea642 (plain) (blame)
1
2
3
4
5
6
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]+"