1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-21 01:32:10 +01:00

Add hint how to deal with scmsync-nobranch scenarios

This commit is contained in:
Jan Engelhardt 2024-12-15 12:44:12 +01:00
parent ffca873272
commit 52431dda78

View File

@ -3618,7 +3618,10 @@ def branch_pkg(
# error out if we're branching a scmsync package (we'd end up with garbage anyway)
if root is not None and root.find("scmsync") is not None:
msg = "Cannot branch a package with <scmsync> set."
msg = ("osc cannot branch packages with <scmsync>, i.e. externally "
"managed sources. Often, the URL for cloning is also the URL "
"for a collaborative web interface where you can fork (branch). "
"The scmsync URL was: " + root.find("scmsync").text)
if devel_project:
raise oscerr.PackageError(devel_project, devel_package, msg)
raise oscerr.PackageError(src_project, src_package, msg)