Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CADET-RDM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
IBG-1
ModSim
CADET
CADET-RDM
Commits
5d863e28
Commit
5d863e28
authored
11 months ago
by
r.jaepel
Browse files
Options
Downloads
Patches
Plain Diff
Reduce verbosity during version update
parent
73ec27e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cadetrdm/configuration_options.py
+2
-0
2 additions, 0 deletions
cadetrdm/configuration_options.py
cadetrdm/repositories.py
+2
-3
2 additions, 3 deletions
cadetrdm/repositories.py
with
4 additions
and
3 deletions
cadetrdm/configuration_options.py
+
2
−
0
View file @
5d863e28
...
@@ -43,6 +43,8 @@ class Options(Dict):
...
@@ -43,6 +43,8 @@ class Options(Dict):
new
=
super
().
copy
()
new
=
super
().
copy
()
return
Options
(
new
)
return
Options
(
new
)
# super.update() already takes care of nested dictionaries, so we don't have to
@classmethod
@classmethod
def
loads
(
cls
,
string
):
def
loads
(
cls
,
string
):
decoded
=
json
.
loads
(
string
,
cls
=
CustomDecoder
)
decoded
=
json
.
loads
(
string
,
cls
=
CustomDecoder
)
...
...
This diff is collapsed.
Click to expand it.
cadetrdm/repositories.py
+
2
−
3
View file @
5d863e28
...
@@ -623,9 +623,6 @@ class ProjectRepo(BaseRepo):
...
@@ -623,9 +623,6 @@ class ProjectRepo(BaseRepo):
self
.
_output_repo
=
OutputRepo
(
self
.
path
/
self
.
_output_folder
)
self
.
_output_repo
=
OutputRepo
(
self
.
path
/
self
.
_output_folder
)
if
metadata
[
"
cadet_rdm_version
"
]
!=
cadetrdm
.
__version__
:
if
metadata
[
"
cadet_rdm_version
"
]
!=
cadetrdm
.
__version__
:
print
(
f
"
Repo version
{
metadata
[
'
cadet_rdm_version
'
]
}
is outdated.
"
f
"
Current CADET-RDM version is
{
cadetrdm
.
__version__
}
\n
"
"
Updating the repository now.
"
)
self
.
_update_version
(
metadata
,
cadetrdm
.
__version__
)
self
.
_update_version
(
metadata
,
cadetrdm
.
__version__
)
self
.
_on_context_enter_commit_hash
=
None
self
.
_on_context_enter_commit_hash
=
None
...
@@ -666,6 +663,8 @@ class ProjectRepo(BaseRepo):
...
@@ -666,6 +663,8 @@ class ProjectRepo(BaseRepo):
self
.
add
(
output_remotes_path
)
self
.
add
(
output_remotes_path
)
if
changes_were_made
:
if
changes_were_made
:
print
(
f
"
Repo version
{
metadata
[
'
cadet_rdm_version
'
]
}
was outdated.
"
f
"
Current CADET-RDM version is
{
cadetrdm
.
__version__
}
.
\n
Repo has been updated
"
)
metadata
[
"
cadet_rdm_version
"
]
=
cadetrdm_version
metadata
[
"
cadet_rdm_version
"
]
=
cadetrdm_version
with
open
(
self
.
data_json_path
,
"
w
"
)
as
f
:
with
open
(
self
.
data_json_path
,
"
w
"
)
as
f
:
json
.
dump
(
metadata
,
f
,
indent
=
2
)
json
.
dump
(
metadata
,
f
,
indent
=
2
)
...
...
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