summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/checkpatch.sh9
-rwxr-xr-xtools/guess_git_tree.py7
-rwxr-xr-xtools/parse-email.sh2
3 files changed, 15 insertions, 3 deletions
diff --git a/tests/checkpatch.sh b/tests/checkpatch.sh
index b2e420e..0ce5414 100755
--- a/tests/checkpatch.sh
+++ b/tests/checkpatch.sh
@@ -36,6 +36,13 @@ eval $($toolsdir/parse-email.sh $email)
[ -n "$subject" -a -n "$from" ] || exit 0
failed=false
+
+# check In-Reply-To for version > 1
+if echo $subject | grep -qi 'v[2-9].*\]' && [ -z "$reply" ] ; then
+ failed=true
+ replyto_msg='Must be a reply to the first patch (--in-reply-to).\n\n'
+fi
+
report=$($dpdkdir/devtools/checkpatches.sh -q $email) || failed=true
report=$(echo "$report" | sed '1,/^###/d')
@@ -43,6 +50,6 @@ label='checkpatch'
$failed && status='WARNING' || status='SUCCESS'
$failed && desc='coding style issues' || desc='coding style OK'
-echo "$report" | $toolsdir/send-patch-report.sh \
+echo "$replyto_msg$report" | $toolsdir/send-patch-report.sh \
-t "$subject" -f "$from" -m "$msgid" -p "$pwid" -o "$listid" \
-l "$label" -s "$status" -d "$desc"
diff --git a/tools/guess_git_tree.py b/tools/guess_git_tree.py
index 3c6f2da..bc63674 100755
--- a/tools/guess_git_tree.py
+++ b/tools/guess_git_tree.py
@@ -146,8 +146,11 @@ class Maintainers(object):
tree_list = []
for _file in files:
_tree = self._get_tree(_file)
- if _tree:
- tree_list.append(_tree)
+ # No identified tree for a file means that it should go through
+ # the main repository.
+ if not _tree:
+ _tree = 'dpdk'
+ tree_list.append(_tree)
tree = self.get_common_denominator(tree_list)
if tree == '':
tree = 'dpdk'
diff --git a/tools/parse-email.sh b/tools/parse-email.sh
index 3d7a71f..9cb9583 100755
--- a/tools/parse-email.sh
+++ b/tools/parse-email.sh
@@ -37,6 +37,7 @@ msgid=$(getheader Message-Id "$1")
[ -n "$msgid" ] || msgid=$(getheader Message-ID "$1")
pwid=$(getheader X-Patchwork-Id "$1")
listid=$(getheader List-Id "$1")
+reply=$(getheader In-Reply-To "$1")
cat <<- END_OF_HEADERS
subject="$subject"
@@ -44,4 +45,5 @@ cat <<- END_OF_HEADERS
msgid="$msgid"
pwid="$pwid"
listid="$listid"
+ reply="$reply"
END_OF_HEADERS