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

Kamal Mostafa kamal at canonical.com
Thu Sep 19 16:29:54 UTC 2013


Applied.

 -Kamal


On Thu, 2013-09-19 at 09:28 -0700, Kamal Mostafa wrote:
> 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."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20130919/e32a47fb/attachment.sig>


More information about the kernel-team mailing list