build: use placeholder vcs() instance for 'hg' til its purged

There are a couple of active apps that use `RepoType: hg`, but they are
both no longer developed. `setup_vcs()` is called before the check whether
the build actually needs to run.  So it needs to return a `vcs()` instance
or it will try to run the build again.

follow up from !1662
This commit is contained in:
Hans-Christoph Steiner
2026-03-10 11:21:48 +01:00
parent 5518cd7d0a
commit f7790e75cd

View File

@@ -1544,6 +1544,8 @@ def getvcs(vcstype, remote, local):
)
if vcstype == 'git-svn':
return vcs_gitsvn(remote, local)
if vcstype == 'hg':
return vcs(remote, local) # placeholder until all RepoType: hg apps are removed
if vcstype == 'srclib':
if str(local) != os.path.join('build', 'srclib', str(remote)):
raise VCSException("Error: srclib paths are hard-coded!")