Author: doogie
Date: Sun Aug 1 00:20:18 2010
New Revision: 981111
URL:
http://svn.apache.org/viewvc?rev=981111&view=revLog:
Improve log message extraction when the message is multiple lines, and be more forceful with the abort command.
Modified:
ofbiz/branches/release10.04/mergefromtrunk.sh
Modified: ofbiz/branches/release10.04/mergefromtrunk.sh
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/mergefromtrunk.sh?rev=981111&r1=981110&r2=981111&view=diff==============================================================================
--- ofbiz/branches/release10.04/mergefromtrunk.sh (original)
+++ ofbiz/branches/release10.04/mergefromtrunk.sh Sun Aug 1 00:20:18 2010
@@ -84,8 +84,10 @@ case "$cmd" in
# chained pipe; if one of the commands in the pipe fails,
# it isn't possible to detect the failure.
printf "Applied fix from trunk for revision: %s \n===\n\n" "$rev" > runtime/merge-state/log-message
- svn log --xml
https://svn.apache.org/repos/asf/ofbiz/trunk -r "$rev" > runtime/merge-state/log.xml
- sed -ne '/^<msg>/s,<msg>\(.*\)</msg>$,\1,p' < runtime/merge-state/log.xml >> runtime/merge-state/log-message
+ svn log
https://svn.apache.org/repos/asf/ofbiz/trunk -r "$rev" > runtime/merge-state/log.txt
+ set -- $(wc -l runtime/merge-state/log.txt)
+ head -n $(($1 - 2)) < runtime/merge-state/log.txt > runtime/merge-state/log.txt.head
+ tail -n $(($1 - 5)) < runtime/merge-state/log.txt.head >> runtime/merge-state/log-message
prevRev=$(($rev - 1))
svn up
svn merge -r "$prevRev:$rev"
https://svn.apache.org/repos/asf/ofbiz/trunk
@@ -100,7 +102,8 @@ case "$cmd" in
rm -rf runtime/merge-state
;;
(abort)
- svn revert .
+ svn resolved . -R
+ svn revert . -R
rm -rf runtime/merge-state
;;
("")