summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-03-30 17:37:53 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-03-30 17:37:53 -0700
commitd99177342d725d7fbbd024245697d33c63952ed9 (patch)
tree6bcd20c9d1d78e7286978ff888ad469186b26216 /v4l/scripts
parentecca1d4c181aec48774dea4252f8bc7ce625af2f (diff)
downloadmediapointer-dvb-s2-d99177342d725d7fbbd024245697d33c63952ed9.tar.gz
mediapointer-dvb-s2-d99177342d725d7fbbd024245697d33c63952ed9.tar.bz2
build: Fix bug with make qrefresh
From: Trent Piepho <xyzzy@speakeasy.org> Annoyingly, the Hg mq extension will strip lines starting with "From: " from the patch header. Since the v4l-dvb format commit message contains a line starting with "From: ", it will mess them up. This changes prep_commit_msg to create a decoy "from" line to keep mq from messing up commit messages. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'v4l/scripts')
-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";
#