This allows to detect if the build was started from a patch and for
example, skip deployment.
Example:
BUILD_SUBMITTER=hub.sr.ht
BUILD_REASON=patchset
PATCHSET_ID=19897
PATCHSET_URL=https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/19897
Ticket: ~sircmpwn/hub.sr.ht#70
We add a unique constraint on source_repo table to prevent multiple
links of the same remote repository to a given project.
The UI already prevents duplicates (from ef585b6e) but it seems better
to enforce this in the database model.
Relative links from project summaries resulted in raw pages rather
than rendered pages for both mercurial and git repositories.
This patch is intended to match the behavior of git.sr.ht and hg.sr.ht
README rendering by passing the previous raw links as secondary link
prefixes (for rendering images) but otherwise link to rendered
resources.
related ticket: todo.sr.ht/~sircmpwn/hub.sr.ht/67
Seems like curl in Debian images is too old to have support for
--no-progress-meter introduced in curl 7.67. This can be done in a
forward compatible way by using -sS.
-s will silence output in general, but -S (--show-error) will unsilence any errors.
Unfortunately "hg clone" seems to have issues with the redirect to the
version with the trailing slash, but it's better than the raw HTML dump
from before
-- >8 --
nabijaczleweli@tarta:~/uwu$ hg clone http://127.0.0.1:5014/~nabijaczleweli/projeq wellb
abort: HTTP Error 308: PERMANENT REDIRECT
nabijaczleweli@tarta:~/uwu$ hg clone http://127.0.0.1:5014/~nabijaczleweli/projeq/ wellb
abort: 'http://127.0.0.1:5014/~nabijaczleweli/projeq/' does not appear to be an hg repository:
---%<--- (text/plain; charset=utf-8)
You have tried to clone a project from sourcehat, but you probably meant to
clone a specific hg repository for this project instead. A single project on
sourcehat often has more than one hg repository.
You can visit the following URL:
http://127.0.0.1:5014/~nabijaczleweli/projeq/sources
To the browse source repositories for this project.
---%<---
!
nabijaczleweli@tarta:~/uwu$
-- >8 --