diff options
Diffstat (limited to 'mailimport')
-rwxr-xr-x | mailimport | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mailimport b/mailimport index e6e4df411..2bcd2a09f 100755 --- a/mailimport +++ b/mailimport @@ -25,18 +25,18 @@ fi MBOX=$1 if [ "$TMPDIR" == "" ]; then - TMPDIR=/tmp + TMPDIR=/tmp fi if [ "$EDITOR" == "" ]; then - EDITOR=nano + EDITOR=nano fi DIR=$TMPDIR/mailimport$$ mkdir $DIR if [ "$?" != "0" ]; then - echo "*** Error at mkdir $DIR" - exit; + echo "*** Error at mkdir $DIR" + exit; fi trap "rm -rf $DIR" EXIT TMP2=$DIR/patchheader @@ -86,8 +86,6 @@ apply_patch () { fi done - make whitespace - committer=`grep "Committer:" $TMP2|sed s/"#Committer: "//` if [ "$usemq" != "" ]; then @@ -110,9 +108,12 @@ apply_patch () { echo hg -m "`cat $TMP2|grep -v "^#"`" qnew $name hg qnew -m "`cat $TMP2|grep -v "^#"`" $name + make whitespace hg qrefresh else patch -s -t -p1 -l -N -d $pdir -i $next + make whitespace + if [ "$?" != "0" ]; then echo "*** ERROR at: patch -s -t -p1 -l -N -d $pdir -i $next" exit @@ -133,6 +134,7 @@ apply_patch () { fi cd $cur fi + hg log -r -1 -v } echo git-mailsplit $MBOX $DIR |