summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2021-09-30 10:36:00 -0300
committerThibault Saunier <tsaunier@igalia.com>2021-09-30 12:54:20 -0300
commitba0c2cbbf7aa399dee442527b3f69a6baa12c0ec (patch)
treea59f01b43e3726f535fa59ca4e1a749b113ee94a /scripts
parentd435b154b836bfdadba13f25270cf920a13ae0b1 (diff)
downloadgstreamer-ba0c2cbbf7aa399dee442527b3f69a6baa12c0ec.tar.gz
move-script: Handle users not having forked gstreamer core
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/990>
Diffstat (limited to 'scripts')
-rw-r--r--[-rwxr-xr-x]scripts/move_mrs_to_monorepo.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/move_mrs_to_monorepo.py b/scripts/move_mrs_to_monorepo.py
index f42bd7f2f3..def8c12b44 100755..100644
--- a/scripts/move_mrs_to_monorepo.py
+++ b/scripts/move_mrs_to_monorepo.py
@@ -330,9 +330,15 @@ class GstMRMover:
fprint("Fetching projects... ")
self.all_projects = [proj for proj in self.gl.projects.list(
membership=1, all=True) if proj.name in self.modules]
- self.user_project, = [p for p in self.all_projects
- if p.namespace['path'] == self.gl.user.username
- and p.name == MONOREPO_NAME]
+
+ try:
+ self.user_project, = [p for p in self.all_projects
+ if p.namespace['path'] == self.gl.user.username
+ and p.name == MONOREPO_NAME]
+ except ValueError:
+ fprint(f"{red(f'ERROR')}\n\nCould not find repository {self.gl.user.name}/{MONOREPO_NAME}")
+ fprint(f"{red(f'Got to https://gitlab.freedesktop.org/gstreamer/gstreamer/ and create a fork so we can move your Merge requests.')}")
+ sys.exit(1)
fprint(f"{green(' OK')}\n", nested=False)
from_projects = [proj for proj in self.all_projects if proj.namespace['path']