From c7d2903fae98801d44e5b3978b6f1bce6c1b8090 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Thu, 15 Sep 2011 11:45:06 +0000 Subject: [PATCH] Convert "BUG=foo" to "(issue foo)" in push-to-trunk.sh Review URL: http://codereview.chromium.org/7903005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9298 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- tools/push-to-trunk.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/push-to-trunk.sh b/tools/push-to-trunk.sh index 761b73367..bd5d003cf 100755 --- a/tools/push-to-trunk.sh +++ b/tools/push-to-trunk.sh @@ -202,10 +202,14 @@ if [ $STEP -le 4 ] ; then for commit in $COMMITS ; do # Get the commit's title line. git log -1 $commit --format="%w(80,8,8)%s" >> "$CHANGELOG_ENTRY_FILE" - # Grep for "BUG=xxxx" lines in the commit message. - git log -1 $commit --format="%b" | grep BUG= | grep -v "BUG=$" \ - | sed -e 's/^/ /' \ - >> "$CHANGELOG_ENTRY_FILE" + # Grep for "BUG=xxxx" lines in the commit message and convert them to + # "(issue xxxx)". + git log -1 $commit --format="%B" \ + | grep "^BUG=" | grep -v "BUG=$" \ + | sed -e 's/^/ /' \ + | sed -e 's/BUG=v8:\(.*\)$/(issue \1)/' \ + | sed -e 's/BUG=\(.*\)$/(Chromium issue \1)/' \ + >> "$CHANGELOG_ENTRY_FILE" # Append the commit's author for reference. git log -1 $commit --format="%w(80,8,8)(%an)" >> "$CHANGELOG_ENTRY_FILE" echo "" >> "$CHANGELOG_ENTRY_FILE" -- 2.34.1