Changeset View
Changeset View
Standalone View
Standalone View
hooks/scripts/mfh.sh
Context not available. | |||||
AUTHOR=$(svnlook author -r "$REV" "$REPOS") | AUTHOR=$(svnlook author -r "$REV" "$REPOS") | ||||
LOG=$(svnlook log -r "$REV" "$REPOS") | LOG=$(svnlook log -r "$REV" "$REPOS") | ||||
DIFF=$(svnlook diff -r "$REV" "$REPOS") | DIFF=$(svnlook diff -r "$REV" "$REPOS") | ||||
MFH_LINE=$(echo "$LOG" | grep '^MFH:[[:space:]]*[[:digit:]]\+Q[[:digit:]]') | MFH_LINE=$(echo "$LOG" | grep '^MFH:[[:space:]]*[[:digit:]]\+Q[[:digit:]]\([[:space:]]*(.*)\)?') | ||||
mat: I'm not sure you need to change this line, it does not change anything wrt what gets in… | |||||
if [ "$MFH_LINE" = "" ]; then | if [ "$MFH_LINE" = "" ] || echo "$MFH_LINE" | grep -q '(.*)'; then | ||||
exit 0 | exit 0 | ||||
fi | fi | ||||
matUnsubmitted Not Done Inline ActionsSplitting it in two to get a message out: if [ "$MFH_LINE" = "" ]; then exit 0 fi if echo "$MFH_LINE" | grep -q '(.*)'; then echo "Comment detected on the MFH line," 1>&2 echo "not sending the MFH email." 1>&2 exit 0 fi mat: Splitting it in two to get a message out:
```
if [ "$MFH_LINE" = "" ]; then
exit 0
fi… | |||||
BRANCH_LINE=$(echo "$MFH_LINE" | sed -e "s|MFH:[[:blank:]]*\(.*\)|\1|") | BRANCH_LINE=$(echo "$MFH_LINE" | sed -e "s|MFH:[[:blank:]]*\(.*\)|\1|") | ||||
Context not available. |
I'm not sure you need to change this line, it does not change anything wrt what gets in MFH_LINE in the end.