Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Nemo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Hatfield
Nemo
Commits
a2c59863
Commit
a2c59863
authored
3 years ago
by
Christian Ethe
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of forge.nemo-ocean.eu:nemo/nemo into main
parents
ad5b8cb3
3dd9d8af
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sette/all_functions.sh
+1
-1
1 addition, 1 deletion
sette/all_functions.sh
sette/sette_eval.sh
+16
-7
16 additions, 7 deletions
sette/sette_eval.sh
sette/sette_rpt.sh
+14
-7
14 additions, 7 deletions
sette/sette_rpt.sh
with
31 additions
and
15 deletions
sette/all_functions.sh
+
1
−
1
View file @
a2c59863
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
sette/sette_eval.sh
+
16
−
7
View file @
a2c59863
...
...
@@ -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
""
...
...
This diff is collapsed.
Click to expand it.
sette/sette_rpt.sh
+
14
−
7
View file @
a2c59863
...
...
@@ -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
""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment