move-mrs-script: add a list only options

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/960>
This commit is contained in:
Stéphane Cerveau 2021-09-29 13:35:09 +02:00 committed by GStreamer Marge Bot
parent 1cfae69bc9
commit 442672cfdd

View file

@ -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)