Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
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
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
a7ce23ce
Commit
a7ce23ce
authored
3 years ago
by
Martin Liska
Browse files
Options
Downloads
Patches
Plain Diff
branch_changer: fix usage of Version class.
maintainer-scripts/ChangeLog: * branch_changer.py: Fix usage of Version class.
parent
34bf3250
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
maintainer-scripts/branch_changer.py
+8
-2
8 additions, 2 deletions
maintainer-scripts/branch_changer.py
with
8 additions
and
2 deletions
maintainer-scripts/branch_changer.py
+
8
−
2
View file @
a7ce23ce
...
...
@@ -43,7 +43,7 @@ import re
import
requests
from
semantic_version
import
SimpleSpec
from
semantic_version
import
Version
base_url
=
'
https://gcc.gnu.org/bugzilla/rest.cgi/
'
statuses
=
[
'
UNCONFIRMED
'
,
'
ASSIGNED
'
,
'
SUSPENDED
'
,
'
NEW
'
,
'
WAITING
'
,
'
REOPENED
'
]
...
...
@@ -149,9 +149,15 @@ class Bug:
new_summary
=
self
.
regex_match
.
group
(
1
)
+
new_version
+
self
.
regex_match
.
group
(
3
)
+
self
.
regex_match
.
group
(
4
)
return
new_summary
@staticmethod
def
to_version
(
version
):
if
len
(
version
.
split
(
'
.
'
))
==
2
:
version
+=
'
.0
'
return
Version
(
version
)
def
serialize_known_to_fail
(
self
):
assert
type
(
self
.
fail_versions
)
is
list
return
'
,
'
.
join
(
sorted
(
self
.
fail_versions
,
key
=
lambda
x
:
SimpleSpec
(
x
)
))
return
'
,
'
.
join
(
sorted
(
self
.
fail_versions
,
key
=
self
.
to_version
))
def
modify_bug
(
self
,
api_key
,
params
,
doit
):
u
=
base_url
+
'
bug/
'
+
str
(
self
.
data
[
'
id
'
])
...
...
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