Browse Source

Abort if merge fails

svn changeset:22856/svn branch:6.8
tags/7.0.0.alpha2
Artur Signell 12 years ago
parent
commit
67037e59a4
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      scripts/merge.sh

+ 6
- 0
scripts/merge.sh View File

@@ -28,6 +28,12 @@ sourceurl="$currentrepowithoutversion/$FROM"

msg=`svn log $sourceurl -r $REVISION --xml|grep "<msg>"|sed "s/<msg>//"|sed "s/<\/msg>//"`
svn merge $sourceurl . -c $REVISION
if [ "$?" != "0" ]
then
echo "Merge failed. Conflicts must be resolved manually!"
exit 3
fi

msg="[merge from $FROM] $msg"
if [ "$AUTOCOMMIT" = "autocommit" ]
then

Loading…
Cancel
Save