Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
and
there
.
Show more breadcrumbs
w2pext
plugin_dbui
Commits
e6d996b6
Commit
e6d996b6
authored
12 years ago
by
legac
Browse files
Options
Downloads
Patches
Plain Diff
Use annotated tag instead of simple tag in order to ease the finding of
the version number using git describe.
parent
f3b044ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildVersion.py
+7
-3
7 additions, 3 deletions
buildVersion.py
with
7 additions
and
3 deletions
buildVersion.py
+
7
−
3
View file @
e6d996b6
...
...
@@ -92,18 +92,22 @@ def git():
if
version
in
fi
.
read
():
print
"
\n\t
tag %s already exit in git
"
%
version
sys
.
exit
(
1
)
# release message
m
=
"
Release version %s
"
%
version
# Commit the new release in git an tag it
print
'
git add
'
,
JSBASE
,
CHANGELOG
cmd
=
[
"
git
"
,
"
add
"
,
JSBASE
,
CHANGELOG
]
subprocess
.
call
(
cmd
)
print
'
git commit
'
cmd
=
[
"
git
"
,
"
commit
"
,
"
-m
"
,
"
Release version %s
"
%
version
]
cmd
=
[
"
git
"
,
"
commit
"
,
"
-m
"
,
m
]
subprocess
.
call
(
cmd
)
# annotated tag
print
'
git tag
'
,
version
cmd
=
[
"
git
"
,
"
tag
"
,
version
]
cmd
=
[
"
git
"
,
"
tag
"
,
"
-a
"
,
version
,
"
-m
"
,
m
]
subprocess
.
call
(
cmd
)
...
...
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