move-mrs-script: add a list only options
authorStéphane Cerveau <scerveau@collabora.com>
Wed, 29 Sep 2021 11:35:09 +0000 (13:35 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 10 Oct 2021 19:50:10 +0000 (19:50 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/960>

scripts/move_mrs_to_monorepo.py

index 379f672..19d5934 100755 (executable)
@@ -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)