diff options
Diffstat (limited to 'deps/v8/tools/push-to-trunk.sh')
-rwxr-xr-x | deps/v8/tools/push-to-trunk.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/deps/v8/tools/push-to-trunk.sh b/deps/v8/tools/push-to-trunk.sh index 761b733679..bd5d003cfd 100755 --- a/deps/v8/tools/push-to-trunk.sh +++ b/deps/v8/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" |