mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 09:41:07 +00:00
move-mrs-script: add a list only options
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/960>
This commit is contained in:
parent
1cfae69bc9
commit
442672cfdd
1 changed files with 4 additions and 0 deletions
|
@ -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("--dry-run", "-n", action="store_true", default=False)
|
||||||
PARSER.add_argument("--use-branch-if-exists",
|
PARSER.add_argument("--use-branch-if-exists",
|
||||||
action="store_true", default=False)
|
action="store_true", default=False)
|
||||||
|
PARSER.add_argument("--list-mrs-only", action="store_true", default=False)
|
||||||
PARSER.add_argument(
|
PARSER.add_argument(
|
||||||
"-c",
|
"-c",
|
||||||
"--config-file",
|
"--config-file",
|
||||||
|
@ -572,6 +573,9 @@ class GstMRMover:
|
||||||
failed_mrs.append(
|
failed_mrs.append(
|
||||||
f"{URL}{from_project.path_with_namespace}/merge_requests/{mr.iid}")
|
f"{URL}{from_project.path_with_namespace}/merge_requests/{mr.iid}")
|
||||||
continue
|
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}'):
|
with nested(f'{bold(from_project.path_with_namespace)}: {mr.iid}'):
|
||||||
new_mr = self.recreate_mr(from_project, to_project, mr)
|
new_mr = self.recreate_mr(from_project, to_project, mr)
|
||||||
|
|
Loading…
Reference in a new issue