Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Debian Blends Team
website
Compare revisions
76d240632efa411e2d0724bd82e2004f89e24183 to ad56c37607461c13226bbd77941d81cf5f64e337
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
blends-team/website
Select target project
No results found
ad56c37607461c13226bbd77941d81cf5f64e337
Select Git revision
Swap
Target
blends-team/website
Select target project
gber/website
parodper/website
sunilmohan/website
pabs/blends-website
blends-team/website
moeller/website
jcristau/blends-website
7 results
76d240632efa411e2d0724bd82e2004f89e24183
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Sort blends to enable easy diffs for the logs
· b9085d27
Andreas Tille
authored
6 years ago
b9085d27
Less noise
· ad56c376
Andreas Tille
authored
6 years ago
ad56c376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc/machine_readable/fetch-machine-readable_salsa.py
+1
-6
1 addition, 6 deletions
misc/machine_readable/fetch-machine-readable_salsa.py
with
1 addition
and
6 deletions
misc/machine_readable/fetch-machine-readable_salsa.py
View file @
ad56c376
...
...
@@ -138,7 +138,7 @@ gl = gitlab.Gitlab("https://salsa.debian.org") # , private_token=SALSA_TOKEN) #
LAST_ACTIVITY
=
'
last_activity_at:
'
LAST_ACTIVITY_LENGTH
=
len
(
LAST_ACTIVITY
)
for
blend
,
gpath
in
BLENDSGROUPS
.
items
():
for
blend
,
gpath
in
sorted
(
BLENDSGROUPS
.
items
()
)
:
unchanged
,
changed
,
new
,
ignored
=
(
0
,
0
,
0
,
0
)
group
=
gl
.
groups
.
get
(
gpath
,
with_projects
=
False
,
simple
=
True
)
valid_group_names
=
[
group
.
name
]
...
...
@@ -158,9 +158,6 @@ for blend, gpath in BLENDSGROUPS.items():
if
sprojects
:
print
(
"
%i projects found in subgroups
"
%
len
(
sprojects
))
valid_group_names
.
extend
(
valid_subgroup_names
)
if
debug
>
0
:
for
sp
in
sprojects
:
print
(
"
id = %i, name = %s, last_activity_at = %s, path = %s, web_url = %s
"
%
(
sp
.
id
,
sp
.
name
,
sp
.
last_activity_at
,
sp
.
path
,
sp
.
web_url
))
projects
.
extend
(
sprojects
)
for
project
in
projects
:
name
=
project
.
name
...
...
@@ -212,8 +209,6 @@ for blend, gpath in BLENDSGROUPS.items():
# see thread around https://lists.debian.org/debian-devel/2018/07/msg00125.html
time
.
sleep
(
SLEEPTIMEFILES
)
# for lazy=True read: https://python-gitlab.readthedocs.io/en/stable/api-usage.html#lazy-objects
if
debug
>
0
:
print
(
"
DEBUG: Get data from project with ID = %s
"
%
str
(
project
.
id
))
pr
=
gl
.
projects
.
get
(
project
.
id
,
lazy
=
True
)
if
output_metadata
(
pr
,
'
debian
'
,
debianmetadata
):
output_metadata
(
pr
,
'
debian/upstream
'
,
upstreammetadata
)
...
...
This diff is collapsed.
Click to expand it.