FreeBSD Bugzilla – Attachment 143914 Details for
Bug 190866
dfilter seems unable to process commit messages with more than one PR listed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
commit hook fix
commit-hook-pr.diff (text/plain), 1.76 KB, created by
Bryan Drewery
on 2014-06-19 00:50:17 UTC
(
hide
)
Description:
commit hook fix
Filename:
MIME Type:
Creator:
Bryan Drewery
Created:
2014-06-19 00:50:17 UTC
Size:
1.76 KB
patch
obsolete
>Index: scripts/notify_bz.sh >=================================================================== >--- scripts/notify_bz.sh (revision 358332) >+++ scripts/notify_bz.sh (working copy) >@@ -14,28 +14,30 @@ > exit 1 > fi > >-PR="$(svnlook info "$REPO" -r "$REV" | sed -nE -e 's/^[ ]*[pP][rR]:[ ]*[a-zA-Z]+\/([0-9]+)/\1/p' -e 's/^[ ]*[pP][rR]:[ ]*([0-9]+)/\1/p')" >+PRS="$(svnlook info "$REPO" -r "$REV" | sed -nE -e 's/^[ ]*[pP][rR]:[ ]*[a-zA-Z]+\/([0-9]+).*/\1/p' -e 's/^[ ]*[pP][rR]:[ ]*([0-9]+).*/\1/p')" > >-if [ -z "$PR" ]; then >+if [ -z "$PRS" ]; then > exit 0 > fi > WHO="$(svnlook author "$REPO" -r "$REV")" > >-( >-echo "From: commit-hook@freebsd.org" >-echo "To: notify-bz@freebsd.org" >-echo "Subject: [Bug $PR]" >-echo "" >-echo "A commit references this bug:" >-echo "" >-echo "Author: $WHO" >-echo "Date: $(date)" >-echo "New revision: $REV" >-echo "URL: http://svnweb.freebsd.org/changeset/ports/$REV" >-echo "" >-echo "Log:" >-svnlook log "$REPO" -r "$REV" | sed -e 's/^/ /' >-echo "" >-echo "Changes:" >-svnlook changed "$REPO" -r "$REV" | sed -E -e 's/^[A-Z]*[ ]+/ /' >-) | sed -e 's/^[ ]*$//' | cat -s | /usr/sbin/sendmail -oi -f commit-hook@freebsd.org notify-bz@freebsd.org >+for pr in $PRS; do >+ ( >+ echo "From: commit-hook@freebsd.org" >+ echo "To: notify-bz@freebsd.org" >+ echo "Subject: [Bug $pr]" >+ echo "" >+ echo "A commit references this bug:" >+ echo "" >+ echo "Author: $WHO" >+ echo "Date: $(date)" >+ echo "New revision: $REV" >+ echo "URL: http://svnweb.freebsd.org/changeset/ports/$REV" >+ echo "" >+ echo "Log:" >+ svnlook log "$REPO" -r "$REV" | sed -e 's/^/ /' >+ echo "" >+ echo "Changes:" >+ svnlook changed "$REPO" -r "$REV" | sed -E -e 's/^[A-Z]*[ ]+/ /' >+ ) | sed -e 's/^[ ]*$//' | cat -s | /usr/sbin/sendmail -oi -f commit-hook@freebsd.org notify-bz@freebsd.org >+done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 190866
: 143914