From 11c3671ca1ff2a8990d7365acfba3042d4d49870 Mon Sep 17 00:00:00 2001 From: Elliott Clark Date: Fri, 13 May 2016 16:38:02 -0700 Subject: [PATCH] HBASE-15725 make_patch.sh should add the branch name when -b is passed. -- addendum --- dev-support/make_patch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-support/make_patch.sh b/dev-support/make_patch.sh index 0aedf88..8179098 100755 --- a/dev-support/make_patch.sh +++ b/dev-support/make_patch.sh @@ -97,7 +97,7 @@ elif [ "$status" -ge 1 ]; then # At least one patch already exists -- add a version prefix for i in {1..99}; do # Check to see the maximum version of patch that exists - if [ ! -f "$patch_dir/$branch-v$i.patch" ]; then + if [ ! -f "$patch_dir/$branch.v$i.patch" ]; then version=$i if [ -n "$addendum" ]; then # Don't increment the patch # if it is an addendum @@ -108,10 +108,10 @@ elif [ "$status" -ge 1 ]; then else # We are making an addendum to a different version of the patch let version=$version-1 - prefix="-v$version" + prefix=".v$version" fi else - prefix="-v$version" + prefix=".v$version" fi break fi @@ -122,7 +122,7 @@ fi tracking_suffix="" if [[ $tracking_branch != "origin/master" \ && $tracking_branch != "master" ]]; then - tracking_suffix="-${tracking_branch#origin/}" + tracking_suffix=".${tracking_branch#origin/}" fi patch_name="$branch$prefix$addendum$tracking_suffix.patch" -- 2.8.0-rc2