Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-deps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pipelines
tools
gitlab-deps
Commits
3ee3aa63
Commit
3ee3aa63
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Fix deprecation warnings on list() calls
parent
fa925502
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#59299
passed
1 year ago
Stage: build
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab_deps/deps.py
+2
-3
2 additions, 3 deletions
gitlab_deps/deps.py
with
2 additions
and
3 deletions
gitlab_deps/deps.py
+
2
−
3
View file @
3ee3aa63
...
...
@@ -14,10 +14,9 @@ def split_project_branch(project_with_branch):
def
list_projects
(
gl
,
search_pattern
):
projects
=
gl
.
projects
.
list
(
all
=
True
,
search
=
search_pattern
,
search_namespaces
=
True
,
as_list
=
Fals
e
,
iterator
=
Tru
e
,
simple
=
True
,
archived
=
False
,
)
...
...
@@ -29,7 +28,7 @@ def get_branches(gl, project_names):
for
path_with_namespace
in
project_names
:
p
=
gl
.
projects
.
get
(
path_with_namespace
)
try
:
branches
=
p
.
branches
.
list
()
branches
=
p
.
branches
.
list
(
iterator
=
True
)
except
Exception
as
e
:
logging
.
error
(
'
error getting branches for %s: %s
'
,
path_with_namespace
,
e
)
...
...
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