Skip to content
Snippets Groups Projects
Commit a2c59863 authored by Christian Ethe's avatar Christian Ethe
Browse files

Merge branch 'main' of forge.nemo-ocean.eu:nemo/nemo into main

parents ad5b8cb3 3dd9d8af
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ clean_config() {
# define validation dir
set_valid_dir () {
#REVISION_NB=`${SVN_CMD} info ${SETTE_DIR}/.. | grep "Last Changed Rev" | awk '{print $NF}'`
REVISION_NB=`git rev-list --abbrev-commit origin`
REVISION_NB=`git rev-list --abbrev-commit origin | tail -1l`
if [ ${#REVISION_NB} -eq 0 ]
then
echo "some problems with ${SVN_CMD} info command"
......
......@@ -234,13 +234,18 @@ function runcmpres(){
# Show current revision tag and branch name
#
if [ ${quiet} -eq 0 ] ; then echo "" ; fi
#lastchange=`${SVN_CMD} info ${MAIN_DIR} | grep 'Last Changed Rev' | awk '{print $NF}'`
lastchange=`git rev-list --abbrev-commit origin`
#revision=`${SVN_CMD} info ${MAIN_DIR} | grep 'Revision' | awk '{print $NF}'`
revision=`git rev-list --abbrev-commit origin`
localchanges=`git status --short -uno | wc -l`
revision=`git rev-list --abbrev-commit origin | tail -1l`
branchname=`${SVN_CMD} info ${MAIN_DIR} | grep ^URL | awk -F ipsl/forge/projets/nemo/svn/ '{print $NF}'`
if [ ${quiet} -eq 0 ] ; then echo "Current code is : $branchname @ $revision ( last change @ $lastchange )" ; fi
#[ `${SVN_CMD} status -q ${MAIN_DIR}/{cfgs,tests,src} | wc -l` -ge 1 ] && lastchange=${lastchange}+
if [ ${quiet} -eq 0 ] ; then
if [ $localchanges > 0 ] ; then
echo "Current code is : $branchname @ $revision ( with local changes )"
lastchange=${revision}_++
else
echo "Current code is : $branchname @ $revision"
lastchange=$revision
fi
fi
# by default use the current lastchanged revision
lastchange=${rev:-$lastchange}
......@@ -249,7 +254,11 @@ if [ ${quiet} -eq 0 ] ; then
echo ""
echo "SETTE evaluation for : "
echo ""
echo " $branchname @ $lastchange (last changed revision)"
if [ $localchanges > 0 ] ; then
echo " $branchname @ $revision (with local changes)"
else
echo " $branchname @ $revision"
fi
echo ""
echo " on $COMPILER arch file"
echo ""
......
......@@ -541,13 +541,16 @@ function identictest(){
# Show current revision tag and branch name
#
echo ""
#lastchange=`${SVN_CMD} info ${MAIN_DIR} | grep 'Last Changed Rev' | awk '{print $NF}'`
lastchange=`git rev-list --abbrev-commit origin`
#revision=`${SVN_CMD} info ${MAIN_DIR} | grep 'Revision' | awk '{print $NF}'`
revision=`git rev-list --abbrev-commit origin`
localchanges=`git status --short -uno | wc -l`
revision=`git rev-list --abbrev-commit origin | tail -1l`
branchname=`${SVN_CMD} info ${MAIN_DIR} | grep ^URL | awk -F ipsl/forge/projets/nemo/svn/ '{print $NF}'`
echo "Current code is : $branchname @ $revision ( last change @ $lastchange )"
#[ `${SVN_CMD} status -q ${MAIN_DIR}/{cfgs,tests,src} | wc -l` -ge 1 ] && lastchange=${lastchange}+
if [ $localchanges > 0 ] ; then
echo "Current code is : $branchname @ $revision ( with local changes )"
lastchange=${revision}_++
else
echo "Current code is : $branchname @ $revision"
lastchange=$revision
fi
# by default use the current lastchanged revision
lastchange=${rev:-$lastchange}
......@@ -555,7 +558,11 @@ lastchange=${rev:-$lastchange}
echo ""
echo "SETTE validation report generated for : "
echo ""
echo " $branchname @ $lastchange (last changed revision)"
if [ $localchanges > 0 ] ; then
echo " $branchname @ $revision (with local changes)"
else
echo " $branchname @ $revision"
fi
echo ""
echo " on $COMPILER arch file"
echo ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment