diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-08 11:53:44 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-03-08 11:53:44 -0300 |
commit | f780713336a2db00609e7bb63648fbd96c5a856d (patch) | |
tree | ea139fcbe8252fe4b1a603ce4e57e91ce4282b14 /v4l/scripts | |
parent | 26b121414fdd513cdbc948bf555a55490adb5edf (diff) | |
download | mediapointer-dvb-s2-f780713336a2db00609e7bb63648fbd96c5a856d.tar.gz mediapointer-dvb-s2-f780713336a2db00609e7bb63648fbd96c5a856d.tar.bz2 |
Fixed a small bug at hghead.pl
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Commiter name were not preserved by mailimport at the way it
was. Now, commiter name will be the HGUSER, and from: line
will be included at commit message, preserving both commiter
and patch authors.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-x | v4l/scripts/hghead.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl index d0f657c08..c495abc8b 100755 --- a/v4l/scripts/hghead.pl +++ b/v4l/scripts/hghead.pl @@ -107,9 +107,7 @@ while ($line = <IN>) { $sub_ok=1; substr( $subject, 0, 1 ) = uc (substr ($subject, 0, 1)); if ($subject =~ m|V4L\/DVB\s*(.+)|) { - print "$1\n\n"; - } else { - print "$subject\n\n"; + $subject=$1; } if ($line =~ m/^\n/) { next; @@ -139,5 +137,7 @@ if (!$maint_ok) { $body=~s/\n+$//; $body=~s/^\n+$//; -print "$from\n$body\n\n$signed"; +# First from is used by hg to recognize commiter name +print "From: $maintainer_name <$maintainer_email>\n"; +print "$subject\n$from\n$body\n\n$signed"; |