summaryrefslogtreecommitdiff
path: root/v4l/scripts/prep_commit_msg.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-04-12 18:42:21 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-12 18:42:21 -0300
commit24d2656eda71a629c958936e8a6031300214f977 (patch)
tree693b00c71eb4c6531163e6efa126fe18545714db /v4l/scripts/prep_commit_msg.pl
parent6bee38194ba9451760aab353e5e825f98d639506 (diff)
parentfd865ea20e1c05d7e9b7d081632db5fa6ad32a3a (diff)
downloadmediapointer-dvb-s2-24d2656eda71a629c958936e8a6031300214f977.tar.gz
mediapointer-dvb-s2-24d2656eda71a629c958936e8a6031300214f977.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/kernel-sync
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/prep_commit_msg.pl')
-rwxr-xr-xv4l/scripts/prep_commit_msg.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/v4l/scripts/prep_commit_msg.pl b/v4l/scripts/prep_commit_msg.pl
index 819009c57..cb0740a5d 100755
--- a/v4l/scripts/prep_commit_msg.pl
+++ b/v4l/scripts/prep_commit_msg.pl
@@ -62,12 +62,18 @@ if ($diff eq 'qdiff') {
open IN, "hg qheader |";
my @header = <IN>;
close IN;
+
if ($#header > 0) {
# Use existing header
print @header;
exit;
}
# No header, use pre-made log message below
+
+ # Hg will strip lines that start with "From: " from mq patch headers!
+ # In order to stop it, we insert this extra From line at the top,
+ # Hg will strip it and then leave the real from line alone.
+ print "From: $user\n\n";
}
print <<"EOF";
#