[Mesa-dev] [PATCH 1/2] bin/get-{extra, fixes}-pick-list.sh: add support for ignore list
Juan A. Suarez Romero
jasuarez at igalia.com
Wed Apr 5 18:25:23 UTC 2017
Both scripts does not use a file with the commits to ignore. So if we
have handled one of the suggested commits and decided we won't pick it,
the scripts will continue suggesting them.
This commits adds support for a bin/.cherry-ignore-extra where we can
put the commits not explicitly rejected (those would be in the
bin/.cherry-ignore) but we want the scripts don't suggest them because
we know those won't be picked for stable.
---
bin/get-extra-pick-list.sh | 14 ++++++++++++++
bin/get-fixes-pick-list.sh | 14 ++++++++++++++
2 files changed, 28 insertions(+)
diff --git a/bin/get-extra-pick-list.sh b/bin/get-extra-pick-list.sh
index 4d39389..70ed36b 100755
--- a/bin/get-extra-pick-list.sh
+++ b/bin/get-extra-pick-list.sh
@@ -21,6 +21,20 @@ git log --reverse --grep="cherry picked from commit" $latest_branchpoint..HEAD |
cat already_picked | cut -c -8 |\
while read sha
do
+ # .. check to see whether the patch is on the ignore list ...
+ if [ -f bin/.cherry-ignore ] ; then
+ if grep -q ^$sha bin/.cherry-ignore ; then
+ continue
+ fi
+ fi
+
+ # ... or on the ignore extra list ...
+ if [ -f bin/.cherry-ignore-extra ] ; then
+ if grep -q ^$sha bin/.cherry-ignore-extra ; then
+ continue
+ fi
+ fi
+
# ... check if it's referenced (fixed by another) patch
git log -n1 --pretty=oneline --grep=$sha $latest_branchpoint..origin/master |\
cut -c -8 |\
diff --git a/bin/get-fixes-pick-list.sh b/bin/get-fixes-pick-list.sh
index 75242a2..1817300 100755
--- a/bin/get-fixes-pick-list.sh
+++ b/bin/get-fixes-pick-list.sh
@@ -24,6 +24,20 @@ git log --reverse --grep="cherry picked from commit" $latest_branchpoint..HEAD |
git log --reverse --pretty=%H -i --grep="fixes:" $latest_branchpoint..origin/master |\
while read sha
do
+ # Check to see whether the patch is on the ignore list ...
+ if [ -f bin/.cherry-ignore ] ; then
+ if grep -q ^$sha bin/.cherry-ignore ; then
+ continue
+ fi
+ fi
+
+ # ... or on the ignore extra list.
+ if [ -f bin/.cherry-ignore-extra ] ; then
+ if grep -q ^$sha bin/.cherry-ignore-extra ; then
+ continue
+ fi
+ fi
+
# For each one try to extract the tag
fixes_count=`git show $sha | grep -i "fixes:" | wc -l`
if [ "x$fixes_count" != x1 ] ; then
--
2.9.3
More information about the mesa-dev
mailing list