| # Copyright 2021 The ChromiumOS Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| rebasedb=$(python3 -c "from common import rebasedb; print(rebasedb)") |
| sql="select disposition,sha,dsha,subject from commits where topic=${t1}" |
| sqlite3 "${rebasedb}" "${sql}" | while read -r line |
| f1=$(echo "${line}" | awk -F '|' '{print $1}') # disposition |
| f2=$(echo "${line}" | awk -F '|' '{print $2}') # sha |
| f3=$(echo "${line}" | awk -F '|' '{print $3}') # replacement sha |
| f4=$(echo "${line}" | awk -F '|' '{print $4}') # subject |
| if [ "${f1}" = "squash" ] |
| echo "exec dosquash49.sh ${f2} ${f4}" |
| if [[ "${f1}" != "pick" && "${f1}" != "edit" && "${f1}" != "reword" ]] |
| # echo "cherry-picking ${f2}" |
| if [ "${fromupstream}" -ne 0 ] |
| echo "pick ${f2_old} ${f4}" |
| echo "exec fromupstream.py --replace ${f2}" |
| elif [ "${dotag}" -ne 0 ] |
| elif [ "${conflicts}" -ne 0 ] |
| echo "exec doconflicts49.sh ${f2} ${f4}" |