get-pick-list: Allow for non-whitespace between "CC:" and "mesa-stable"
authorCarl Worth <cworth@cworth.org>
Wed, 31 Jul 2013 22:49:48 +0000 (15:49 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 31 Jul 2013 22:49:48 +0000 (15:49 -0700)
We recently proposed a new syntax for stable-patch nominations such as:

CC: "9.2 and 9.1" <mesa-stable@lists.freedesktop.org>
and this has already appeared in the wild.

So we extend the regular expression to pick this up as well.

bin/get-pick-list.sh

index b9def6b2f2147d8070180073455fd5d8d88bf816..0902fd08077dec3d8d4a292159fa2b6ed3c58e09 100755 (executable)
@@ -14,7 +14,7 @@ git log --reverse --grep="cherry picked from commit" origin/master..HEAD |\
        sed -e 's/^[[:space:]]*(cherry picked from commit[[:space:]]*//' -e 's/)//' > already_picked
 
 # Grep for commits that were marked as a candidate for the stable tree.
-git log --reverse --pretty=%H -i --grep='^\([[:space:]]*NOTE: .*[Cc]andidate\|CC:[[:space:]]*mesa-stable\)' HEAD..origin/master |\
+git log --reverse --pretty=%H -i --grep='^\([[:space:]]*NOTE: .*[Cc]andidate\|CC:.*mesa-stable\)' HEAD..origin/master |\
 while read sha
 do
        # Check to see whether the patch is on the ignore list.