Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
b553de2c
Commit
b553de2c
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
docker_dev_start: better version number
parent
300b2ed1
No related branches found
No related tags found
1 merge request
!189
📝 docker_dev_start: better version number
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+6
-6
6 additions, 6 deletions
NEWS.rst
odoo_scripts/docker_dev_start.py
+9
-5
9 additions, 5 deletions
odoo_scripts/docker_dev_start.py
with
15 additions
and
11 deletions
NEWS.rst
+
6
−
6
View file @
b553de2c
...
...
@@ -2,11 +2,6 @@
History
=======
20.3.1
------
run_tests: exclude all manifest from coverage, previous exclusion did not apply for installable modules.
20.3.0
------
...
...
@@ -10,7 +5,12 @@
20.3.0
------
docker_dev_start: clearer message for missing redner image name.
docker_dev_start:
- Clearer message for missing redner image name.
- Improve version string: include next version and topic for mercurial super projects.
run_tests: exclude all manifest from coverage, previous exclusion did not apply for installable modules.
20.2.0
------
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_dev_start.py
+
9
−
5
View file @
b553de2c
...
...
@@ -56,7 +56,7 @@
__version__
=
"
3.12.0
"
__date__
=
"
2017-08-11
"
__updated__
=
"
2023-04-2
1
"
__updated__
=
"
2023-04-2
6
"
def
__parser
(
project_name
:
str
)
->
ArgumentParser
:
...
...
@@ -1188,6 +1188,8 @@
project_version
=
"
local
"
if
os
.
path
.
exists
(
"
.hg
"
):
# Next version guessing could be done by using marabunta yaml and using it
# rather than doing latesttag.1
project_version
=
check_output
(
[
"
hg
"
,
...
...
@@ -1191,7 +1193,5 @@
project_version
=
check_output
(
[
"
hg
"
,
"
log
"
,
"
-r
"
,
"
.
"
,
"
identify
"
,
"
-T
"
,
...
...
@@ -1197,8 +1197,11 @@
"
-T
"
,
"
{latesttag}{sub(
'
^-0-.*
'
,
''
,
'
-{latesttagdistance}-m{node|short}
'
)}
"
,
"
{latesttag}{if(
'
{dirty}
'
,
'
.1.dev{latesttagdistance}{if(
'
{topic}
'
,
'
{
"
"
fqbn}
'
)}
'
,
'
{ifeq(
'
{latesttagdistance}
'
, 1,
''
,
'
{ifeq(
'
{latesttagdist
"
"
ance}
'
, 2,
''
,
'
.1.dev{latesttagdistance}{if(
'
{topic}
'
,
'
{fqbn}
'
)}
'
)}
"
"'
)}
'
)}
"
,
]
).
decode
()
if
os
.
path
.
exists
(
"
.git
"
):
project_version
=
check_output
([
"
git
"
,
"
describe
"
]).
decode
()
...
...
@@ -1199,9 +1202,10 @@
]
).
decode
()
if
os
.
path
.
exists
(
"
.git
"
):
project_version
=
check_output
([
"
git
"
,
"
describe
"
]).
decode
()
options
[
"
environment
"
][
"
VERSION_PACKAGE
"
]
=
""
options
[
"
environment
"
][
"
SENTRY_RELEASE
"
]
=
project_version
options
[
"
environment
"
][
"
VERSION
"
]
=
project_version
...
...
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