[kteam-tools][PATCH] stable-lint: Reverts do not need "commit {sha} upstream."

Kamal Mostafa kamal at canonical.com
Thu Sep 19 16:28:44 UTC 2013


Revert commits may or may not come from upstream, so skip this check for
Reverts.

Signed-off-by: Kamal Mostafa <kamal at canonical.com>
Acked-by: Luis Henriques <luis.henriques at canonical.com>
---
 stable/stable-lint | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/stable/stable-lint b/stable/stable-lint
index 680ff08..749ac9a 100755
--- a/stable/stable-lint
+++ b/stable/stable-lint
@@ -28,6 +28,8 @@ function check_commit_upstream_label # sha commitlog
 {
 	grep -q '^commit [[:xdigit:]]\{40\} upstream' $2 && return 0
 	grep -q 'Upstream commit [[:xdigit:]]\{40\}' $2 && return 0
+	# ignore Revert commits (they may or may not be from upstream)
+	head -1 $2 | grep -q "^Revert \"" && return 0
 	# ignore the "Linux w.x.y.z" release commits
 	head -1 $2 | grep -q '^Linux [0-9].*' && return 0
 	echo "W: $1 missing: commit {mainline_sha} upstream."
-- 
1.8.1.2





More information about the kernel-team mailing list