File: check_for_bug.sh

package info (click to toggle)
chirp 1%3A20221106%2Bpy3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,144 kB
  • sloc: python: 119,334; ansic: 296; sh: 184; makefile: 41
file content (7 lines) | stat: -rwxr-xr-x 218 bytes parent folder | download | duplicates (3)
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]+"