Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion remote_branch_checker/remote_branch_checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,16 @@ sed '/^$/d' ${WORKSPACE}/work/patchset.files > ${WORKSPACE}/work/patchset.files.
mv ${WORKSPACE}/work/patchset.files.tmp ${WORKSPACE}/work/patchset.files

# For 4.5 and up, verify that the we aren't modifying any upgrade.txt or UPGRADING.md files.
# lib/guzzlehttp/guzzle/UPGRADING.md is a false positive. It's a vendored file.
if [[ ${versionbranch} -ge 405 ]]; then
if grep -q 'UPGRADING.md\|upgrade.txt' ${WORKSPACE}/work/patchset.files; then
if sed '/lib\/guzzlehttp\/guzzle\/UPGRADING.md/d' ${WORKSPACE}/work/patchset.files | grep -q 'UPGRADING.md\|upgrade.txt'; then
echo "Error: The patchset contains changes to upgrade.txt or UPGRADING.md files." | tee -a ${errorfile}

dirtyupgrades="$( sed '/lib\/guzzlehttp\/guzzle\/UPGRADING.md/d' ${WORKSPACE}/work/patchset.files | grep 'UPGRADING.md\|upgrade.txt' )"
if [[ -n "${dirtyupgrades}" ]]; then
echo "Error: File(s) affected:" | tee -a ${errorfile}
echo "${dirtyupgrades}" | sed "/^${WORKSPACE}//g" | sed 's/^/Error: /' | tee -a ${errorfile}
fi
fi
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
condensedresult="smurf,error,1,0:overview,error,1,0
<detail name="overview" status="error" numerrors="1" numwarnings="0"/>
<message>The patchset contains changes to upgrade.txt or UPGRADING.md files.</message>
<message>File(s) affected:</message>
<message>UPGRADING.md</message>
<message>lib/upgrade.txt</message>
<message>mod/assign/UPGRADING.md</message>
<message>mod/assign/upgrade.txt</message>
Loading