Added a check for uncomitted changes to bin/mergedevbranch.

- Legacy-Id: 17213
This commit is contained in:
Henrik Levkowetz 2020-01-10 12:29:54 +00:00
parent ba3010e3b0
commit 82e270fc82

View file

@ -142,6 +142,14 @@ if grep "@$rev $branch" $mergelog; then die "Changeset $branch@$rev is already i
note "Will attempt merge from $branch@$rev"
# "Check there's no uncommitted changes ..."
echo ""
$do svn st | grep "^[AMGRD] " && {
echo ""
read -p "There are uncommitted changes. Really do merge? [y/N] "
[ "$REPLY" = "Y" -o "$REPLY" = "y" ] || exit
}
note "Extract who and what:"
info=$(svn log ${repo}/ -r $rev --incremental)
set $(echo "$info" | tail -n +2 | head -n 1 | tr "|" "\t")