Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
snippets
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
Model registry
Operate
Environments
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
Platform
Development
snippets
Commits
fa5f9da2
Commit
fa5f9da2
authored
2 years ago
by
Antoine Lambert
Browse files
Options
Downloads
Patches
Plain Diff
diff_swh_revisions: Flush stdout after each processed revision
parent
f43eae92
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
anlambert/diff_swh_revisions.py
+3
-1
3 additions, 1 deletion
anlambert/diff_swh_revisions.py
with
3 additions
and
1 deletion
anlambert/diff_swh_revisions.py
+
3
−
1
View file @
fa5f9da2
...
...
@@ -51,7 +51,8 @@ type_to_obj_type = {
def
run
(
ctx
,
storage_url
,
track_renaming
,
verbose
,
rev_swhids
):
"""
From a given list of revision SWHIDS, provided as arguments or read from
standard input line by line, output the list of files each of them modifies
in NDJSON format.
(equivalent to
"
git diff --stat
"
, but without the detail of the number of
lines added/removed to each modified path) in NDJSON format.
By default, output a list of modifications with their type (modify/insert/delete)
and their modified path.
...
...
@@ -113,6 +114,7 @@ def run(ctx, storage_url, track_renaming, verbose, rev_swhids):
for
rev_change
in
rev_changes
]
)
sys
.
stdout
.
flush
()
if
__name__
==
"
__main__
"
:
...
...
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