| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 # |
| 6 # Script for printing recent commits in a buildbot run. | 6 # Script for printing recent commits in a buildbot run. |
| 7 | 7 |
| 8 # Return the sha1 of the given tag. If not present, return "". | 8 # Return the sha1 of the given tag. If not present, return "". |
| 9 # $1: path to repo | 9 # $1: path to repo |
| 10 # $2: tag name | 10 # $2: tag name |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 for project in $@; do | 80 for project in $@; do |
| 81 local full_path=$CHROME_SRC/../$project | 81 local full_path=$CHROME_SRC/../$project |
| 82 tt_list_commits $full_path tree_truth $project | 82 tt_list_commits $full_path tree_truth $project |
| 83 tt_tag_head $full_path tree_truth | 83 tt_tag_head $full_path tree_truth |
| 84 done | 84 done |
| 85 } | 85 } |
| 86 | 86 |
| 87 # Print a summary of the last 10 commits for each repo. | 87 # Print a summary of the last 10 commits for each repo. |
| 88 tt_brief_summary() { | 88 tt_brief_summary() { |
| 89 echo "@@@BUILD_STEP Brief summary of recent CLs in every branch@@@" | 89 echo "@@@BUILD_STEP Brief summary of recent CLs in every branch@@@" |
| 90 for p in $@; do | 90 for project in $@; do |
| 91 echo $project | 91 echo $project: |
| 92 (cd $CHROME_SRC/../$p && git log -n 10 --format=" %H %s %an, %ad" | cat) | 92 local full_path=$CHROME_SRC/../$project |
| 93 (cd $full_path && git log -n 10 --format=" %H %s %an, %ad" | cat) |
| 93 echo "=================================================================" | 94 echo "=================================================================" |
| 94 done | 95 done |
| 95 } | 96 } |
| 96 | 97 |
| 97 CHROME_SRC=$1 | 98 CHROME_SRC=$1 |
| 98 shift | 99 shift |
| 99 PROJECT_LIST=$@ | 100 PROJECT_LIST=$@ |
| 100 tt_brief_summary $PROJECT_LIST | 101 tt_brief_summary $PROJECT_LIST |
| 101 tt_print_all $PROJECT_LIST | 102 tt_print_all $PROJECT_LIST |
| OLD | NEW |