summaryrefslogtreecommitdiff
path: root/mailimport
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-12 12:28:43 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-09-12 12:28:43 -0300
commitd97a5c24bb8f480281d7bedce89525dab393b142 (patch)
tree30f552bd46561ba5c7d415ebd2b33c2217bb56e8 /mailimport
parent663ee60868bfe944eba2d82f21ed3f66e071b92c (diff)
downloadmediapointer-dvb-s2-d97a5c24bb8f480281d7bedce89525dab393b142.tar.gz
mediapointer-dvb-s2-d97a5c24bb8f480281d7bedce89525dab393b142.tar.bz2
Improve mailimport scripts
From: Mauro Carvalho Chehab <mchehab@infradead.org> - Preserve original email's date; - Handles reviewed-by tag; - avoids upperscase troubles when processing tags. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'mailimport')
-rwxr-xr-xmailimport7
1 files changed, 4 insertions, 3 deletions
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"