hack/cherry-pick should support selectors still
Selectors are simpler for many commit ranges than the PR, which was
only ever intended to be a convenience. Check for range selectors
and use them.
@@ -37,7 +37,10 @@ os::build::require_clean_tree
remote="${UPSTREAM_REMOTE:-origin}"
git fetch ${remote}
-if [[ -n "${APPLY_PR_COMMITS-}" ]]; then
+if [[ "${1}" == *".."* ]]; then
+ selector=$1
+ pr="TODO"
+elif [[ -n "${APPLY_PR_COMMITS-}" ]]; then
selector="$(os::build::commit_range $pr ${remote}/${UPSTREAM_BRANCH:-master})"
else
pr_commit="$(git rev-parse ${remote}/pr/$1)"
