diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2021-09-29 13:35:09 +0200 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-10-10 19:50:10 +0000 |
commit | 442672cfdde73f3bd6460032081b7805d736d255 (patch) | |
tree | 0ea5354267217a1e2cd28e01d1261551a30683a5 /scripts | |
parent | 1cfae69bc93b135dee52628b6af2136f8f61f657 (diff) | |
download | gstreamer-442672cfdde73f3bd6460032081b7805d736d255.tar.gz |
move-mrs-script: add a list only options
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/960>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/move_mrs_to_monorepo.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/move_mrs_to_monorepo.py b/scripts/move_mrs_to_monorepo.py index 379f672a85..19d5934828 100755 --- a/scripts/move_mrs_to_monorepo.py +++ b/scripts/move_mrs_to_monorepo.py @@ -52,6 +52,7 @@ PARSER.add_argument("--skip-on-failure", action="store_true", default=False) PARSER.add_argument("--dry-run", "-n", action="store_true", default=False) PARSER.add_argument("--use-branch-if-exists", action="store_true", default=False) +PARSER.add_argument("--list-mrs-only", action="store_true", default=False) PARSER.add_argument( "-c", "--config-file", @@ -572,6 +573,9 @@ class GstMRMover: failed_mrs.append( f"{URL}{from_project.path_with_namespace}/merge_requests/{mr.iid}") continue + if self.list_mrs_only: + fprint("\n"f"List only: {yellow('SKIPPED')}\n") + continue with nested(f'{bold(from_project.path_with_namespace)}: {mr.iid}'): new_mr = self.recreate_mr(from_project, to_project, mr) |