summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
Diffstat (limited to 'v4l')
-rwxr-xr-xv4l/scripts/hghead.pl24
-rwxr-xr-xv4l/scripts/prep_commit_msg.pl17
2 files changed, 29 insertions, 12 deletions
diff --git a/v4l/scripts/hghead.pl b/v4l/scripts/hghead.pl
index 0f086294d..7dd40380a 100755
--- a/v4l/scripts/hghead.pl
+++ b/v4l/scripts/hghead.pl
@@ -19,6 +19,7 @@ my $maintainer_name=$ENV{CHANGE_LOG_NAME};
my $maintainer_email=$ENV{CHANGE_LOG_EMAIL_ADDRESS};
my $from="";
my $body="";
+my $priority="";
my $signed="";
my $fromname="";
@@ -64,8 +65,8 @@ while ($line = <IN>) {
my $tag=$line;
my $arg=$line;
- $tag =~ s/\s*([^\s]+:)(.*)\n/\1/;
- $arg =~ s/\s*([^\s]+:)(.*)\n/\2/;
+ $tag =~ s/\s*([^\s]+:)\s*(.*)\n/\1/;
+ $arg =~ s/\s*([^\s]+:)\s*(.*)\n/\2/;
$tag =~ tr/A-Z/a-z/;
@@ -96,6 +97,19 @@ while ($line = <IN>) {
next;
}
+ if ($tag =~ m/^priority:/) {
+ $arg =~ tr/A-Z/a-z/;
+
+ # Replace the -git branch names for high/normal/low
+ $arg =~ s/^fixes$/high/;
+ $arg =~ s/^fix$/high/;
+ $arg =~ s/^working$/normal/;
+ $arg =~ s/^work$/normal/;
+ $arg =~ s/^pending$/low/;
+ $priority = "Priority: $arg";
+ next;
+ }
+
if ($line =~ m;^ .*\/.*\| *[0-9]*;) {
next;
}
@@ -196,9 +210,13 @@ $from=~s/[\n\s]+$//;
$subject=~s/^[\n\s]+//;
$subject=~s/[\n\s]+$//;
-$body=~s/^[\n\s]+//;
+$body=~s/^[\n]+//;
$body=~s/[\n\s]+$//;
+if ($priority ne "") {
+ $body="$body\n\n$priority";
+}
+
$body="$body\n\n$signed";
$body=~s/^[\n\s]+//;
diff --git a/v4l/scripts/prep_commit_msg.pl b/v4l/scripts/prep_commit_msg.pl
index ffd8aeb84..926a2094b 100755
--- a/v4l/scripts/prep_commit_msg.pl
+++ b/v4l/scripts/prep_commit_msg.pl
@@ -128,21 +128,20 @@ if ($diff eq 'qdiff') {
}
print <<"EOF";
#
-# For better log display, please keep a blank line after subject, after from,
-# and before signed-off-by.
-# First line should be the subject, without Subject:
-#
+# Patch Subject (a brief description with less than 74 chars):
-# Now, patch author (just the main one), on a From: field
-# Please change below if the committer is not the patch author.
-#
+# From Line, identifying the name of the patch author
From: $user
-# Then a detailed description:
+# A detailed description:
+# NEW: Please change the priority of the patch to "high" if the patch is
+# a bug fix, or are meant to be applied at the first upstream
+# version of a new driver whose changes don't depend on changes on
+# core modules
+Priority: normal
# At the end Signed-off-by: fields by patch author and committer, at least.
-#
Signed-off-by: $user
EOF