Skip to content

Commit 82e270f

Browse files
committed
Added a check for uncomitted changes to bin/mergedevbranch.
- Legacy-Id: 17213
1 parent ba3010e commit 82e270f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

bin/mergedevbranch

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,14 @@ if grep "@$rev $branch" $mergelog; then die "Changeset $branch@$rev is already i
142142

143143
note "Will attempt merge from $branch@$rev"
144144

145+
# "Check there's no uncommitted changes ..."
146+
echo ""
147+
$do svn st | grep "^[AMGRD] " && {
148+
echo ""
149+
read -p "There are uncommitted changes. Really do merge? [y/N] "
150+
[ "$REPLY" = "Y" -o "$REPLY" = "y" ] || exit
151+
}
152+
145153
note "Extract who and what:"
146154
info=$(svn log ${repo}/ -r $rev --incremental)
147155
set $(echo "$info" | tail -n +2 | head -n 1 | tr "|" "\t")

0 commit comments

Comments
 (0)