Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cube-doctor
Commits
9ffeb0e43394
Commit
2e35e57c
authored
Mar 19, 2021
by
Laurent Peuch
Browse files
refactor: make related code closer
parent
a58bf2c06414
Changes
1
Hide whitespace changes
Inline
Side-by-side
cube_doctor/__init__.py
View file @
9ffeb0e4
...
@@ -388,8 +388,6 @@ class Command:
...
@@ -388,8 +388,6 @@ class Command:
print
(
f
"ERROR:
{
cube
.
name
}
is EMPTY, skip it"
)
print
(
f
"ERROR:
{
cube
.
name
}
is EMPTY, skip it"
)
continue
continue
branches
=
[
x
.
name
for
x
in
cube
.
branches
.
list
(
all
=
True
)]
if
forced_branch_name
is
not
None
:
if
forced_branch_name
is
not
None
:
if
not
forced_branch_name
.
startswith
(
"topic/default/"
):
if
not
forced_branch_name
.
startswith
(
"topic/default/"
):
forced_branch_name
=
"topic/default/"
+
forced_branch_name
forced_branch_name
=
"topic/default/"
+
forced_branch_name
...
@@ -399,6 +397,8 @@ class Command:
...
@@ -399,6 +397,8 @@ class Command:
else
:
else
:
target_branch
=
None
target_branch
=
None
branches
=
[
x
.
name
for
x
in
cube
.
branches
.
list
(
all
=
True
)]
# we already sent the MR
# we already sent the MR
if
(
if
(
not
update_mr
not
update_mr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment