From f780713336a2db00609e7bb63648fbd96c5a856d Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Wed, 8 Mar 2006 11:53:44 -0300 Subject: Fixed a small bug at hghead.pl From: Mauro Carvalho Chehab 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 --- v4l/scripts/hghead.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'v4l/scripts/hghead.pl') 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 = ) { $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"; -- cgit v1.2.3