[ARVADOS] updated: 2.1.0-885-g032b245d3

Git user git at public.arvados.org
Thu Jun 3 16:05:32 UTC 2021


Summary of changes:
 build/version-at-commit.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

       via  032b245d3031eb51c9bc95389b77e890f16a51fe (commit)
      from  ba69363363664e365ebd013f7890d5a32abe16e4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 032b245d3031eb51c9bc95389b77e890f16a51fe
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Thu Jun 3 12:03:02 2021 -0400

    Tweak version-at-commit.sh for interim releases (X.Y.Z.A)
    
    Assign correct intended dev version when there is a X.Y.Z.A tag (not
    just X.Y.Z) in the history.
    
    As of this writing we don't have tags like that in the arvados repo,
    but we do have tags like that in the workbench2 repo, so this commit
    is just about synchronizing the script for consistency between the two
    repos.
    
    refs #17512
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/build/version-at-commit.sh b/build/version-at-commit.sh
index 53687dafe..fc60d53e0 100755
--- a/build/version-at-commit.sh
+++ b/build/version-at-commit.sh
@@ -37,12 +37,12 @@ else
     merge_base=$(git merge-base origin/master "$commit")
 
     if git merge-base --is-ancestor "$nearest_tag" "$merge_base" ; then
-        # x.(y+1).0.devTIMESTAMP, where x.y.z is the newest version that does not contain $commit
+        # x.(y+1).0~devTIMESTAMP, where x.y.z is the newest version that does not contain $commit
 	# grep reads the list of tags (-f) that contain $commit and filters them out (-v)
 	# this prevents a newer tag from retroactively changing the versions of everything before it
-        v=$(git tag | grep -vFf <(git tag --contains "$commit") | sort -Vr | head -n1 | perl -pe 's/\.(\d+)\.\d+/".".($1+1).".0"/e')
+        v=$(git tag | grep -vFf <(git tag --contains "$commit") | sort -Vr | head -n1 | perl -pe 's/(\d+)\.(\d+)\.\d+.*/"$1.".($2+1).".0"/e')
     else
-        # x.y.(z+1).devTIMESTAMP, where x.y.z is the latest released ancestor of $commit
+        # x.y.(z+1)~devTIMESTAMP, where x.y.z is the latest released ancestor of $commit
         v=$(echo $nearest_tag | perl -pe 's/(\d+)$/$1+1/e')
     fi
     isodate=$(TZ=UTC git log -n1 --format=%cd --date=iso "$commit")

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list