bin/get-pick-list.sh: rework handing of sha nominations
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 17 Dec 2018 15:44:25 +0000 (15:44 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 21 Dec 2018 14:39:34 +0000 (14:39 +0000)
commit6b296f64af5d69a1d0e4cdcda5f8c6d090dd4449
tree8d2d39aeb900aece3a0e06fa4212f26a44814fa4
parent17218a04065fb32289950d0d63305c1083884de6
bin/get-pick-list.sh: rework handing of sha nominations

Currently our is_sha_nomination does:
 - folds any whitespace, attempting to extract sha-like information
 - checks that at least one of the shas has landed

Split it in two and do sha-like validation first.

This way, commits with mesa-stable and sha nominations will feature the
fixes/revert/etc instead of stable (a) or will be omitted if not
applicable for the respective branch (b).

Misc examples from 18.3

(a)
-[   stable ] 5bc509363b6 glx: make xf86vidmode mandatory for direct rendering
+[    fixes ] 5bc509363b6 glx: make xf86vidmode mandatory for direct rendering

(b)
-[   stable ] 9a7b3199037 anv/query: flush render target before copying results

CC: Juan A. Suarez <jasuarez@igalia.com>
CC: Dylan Baker <dylan@pnwbakers.com>
CC: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Andres Gomez <agomez@igalia.com>
bin/get-pick-list.sh