summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2018-11-08 15:05:14 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2018-11-15 15:57:37 +0000
commitfc99358bdc57494c91ffe26dbd224747f648b1aa (patch)
tree09bb7c3836ba0090593d44b825b7117ba485f918 /bin
parent9650fc05a5f4fcb8b62151127ca752a5b93d5e8c (diff)
bin/get-pick-list.sh: prefix output with "[stable] "
With later commits we'll fold all the different scripts into one. Add the explicit prefix, so that we know the origin of the nomination v2: - pass the sha as argument to the function - swap $tag = none for an else statment (Juan) - grep -q instead of using a variable (Eric) - print the tag and commit oneline separately (Eric) v3: - drop unused "tag=none" assignment (Juan) - typo nomination Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Juan A. Suarez <jasuarez@igalia.com> Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> (v2) Signed-off-by: Emil Velikov <emil.velikov@collabora.com> (cherry picked from commit fac10169bbad2da918ef07a62c01e0b321508cfe)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-pick-list.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/get-pick-list.sh b/bin/get-pick-list.sh
index ba741cc4114..2c7d87db0c6 100755
--- a/bin/get-pick-list.sh
+++ b/bin/get-pick-list.sh
@@ -7,6 +7,14 @@
# $ bin/get-pick-list.sh
# $ bin/get-pick-list.sh > picklist
# $ bin/get-pick-list.sh | tee picklist
+#
+# The output is as follows:
+# [nomination_type] commit_sha commit summary
+
+is_stable_nomination()
+{
+ git show --summary "$1" | grep -q -i -o "CC:.*mesa-stable"
+}
# Use the last branchpoint as our limit for the search
latest_branchpoint=`git merge-base origin/master HEAD`
@@ -32,6 +40,13 @@ do
continue
fi
+ if is_stable_nomination "$sha"; then
+ tag=stable
+ else
+ continue
+ fi
+
+ printf "[ %8s ] " "$tag"
git --no-pager show --summary --oneline $sha
done