From d97a5c24bb8f480281d7bedce89525dab393b142 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 12 Sep 2007 12:28:43 -0300 Subject: Improve mailimport scripts From: Mauro Carvalho Chehab - Preserve original email's date; - Handles reviewed-by tag; - avoids upperscase troubles when processing tags. Signed-off-by: Mauro Carvalho Chehab --- mailimport | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mailimport') diff --git a/mailimport b/mailimport index c7e1bf80a..b072bf5f3 100755 --- a/mailimport +++ b/mailimport @@ -87,6 +87,7 @@ apply_patch () { done committer=`grep "Committer:" $TMP2|sed s/"#Committer: "//` + date=`grep "Date:" $TMP2|sed s/"#Date: "//` if [ "$usemq" != "" ]; then name=`cat $next | perl -ne ' @@ -106,8 +107,8 @@ apply_patch () { cat $next| grep -v "^#" >$TMPDIR/$name - echo hg -m "`cat $TMP2|grep -v "^#"`" qnew $name - hg qnew -m "`cat $TMP2|grep -v "^#"`" $name + echo hg -d "$date" -m "`cat $TMP2|grep -v "^#"`" qnew $name + hg qnew -d "$date" -m "`cat $TMP2|grep -v "^#"`" $name make cardlist make whitespace hg qrefresh @@ -142,7 +143,7 @@ apply_patch () { exit fi - hg commit -u "$committer" -m "`cat $TMP2|grep -v "^#"`" $CARDLIST $FILES + hg commit -d "$date" -u "$committer" -m "`cat $TMP2|grep -v "^#"`" $CARDLIST $FILES if [ "$?" != "0" ]; then echo "*** ERROR at hg commit" -- cgit v1.2.3