~cjwatson/turnip:master

Last commit made on 2023-10-19
Get this branch:
git clone -b master https://git.launchpad.net/~cjwatson/turnip
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
master
Repository:
lp:~cjwatson/turnip

Recent commits

38e5dac... by Bowen Fan

Add ref creation POST endpoint to turnip-api

A bulk endpoint is added at `/repo/{name}/refs`. The request payload should contain
a JSON array of dicts, e.g. [{"ref":"refs/tags/1234", "commit_sha1":<hash>}, ...].
The logic layer will use pygit2's `repo.create_reference` method to write the
requested ref names against the corresponding commits specified.

The response body indicates the refs that were successfully created and refs that
encountered errors. In case of logic layer failures (e.g. the commit cannot be found
in the repo), partial success is possible. In case of API layer failures (e.g. the
request body does not conform to what the API expects), the entire request will not
be processed and an API error will be returned.

Also includes corresponding unit tests for the new functions.

Merged from https://code.launchpad.net/~bowenfan/turnip/+git/turnip/+merge/452540

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
12 of 2 results
ca78292... by Bowen Fan

Add ref creation POST endpoint to turnip-api

A bulk endpoint is added at `/repo/{name}/refs`. The request payload should contain
a JSON array of dicts, e.g. [{"ref":"refs/tags/1234", "commit_sha1":<hash>}, ...].
The logic layer will use pygit2's `repo.create_reference` method to write the
requested ref names against the corresponding commits specified.

The response body indicates the refs that were successfully created and refs that
encountered errors. In case of logic layer failures (e.g. the commit cannot be found
in the repo), partial success is possible. In case of API layer failures (e.g. the
request body does not conform to what the API expects), the entire request will not
be processed and an API error will be returned.

Also includes corresponding unit tests for the new functions.

6b545bb... by Deep Fowdar

Fix issue when overriding symlinked hooks over NFS

When overriding already symlinked hooks over NFS, the rename step
can briefly unlink the hook from the perspective of another machine,
meaning that git subprocesses won't run the python hook.

Merged from https://code.launchpad.net/~superalpaca/turnip/+git/turnip/+merge/453652

b150929... by Deep Fowdar

Fix issue when overriding symlinked hooks over NFS

When overriding already symlinked hooks over NFS, the rename step
can briefly unlink the hook from the perspective of another machine,
meaning that git subprocesses won't run the python hook.

6664c12... by Colin Watson

Add pre-commit checks via lpci

Merged from https://code.launchpad.net/~cjwatson/turnip/+git/turnip/+merge/453433

4b52708... by Colin Watson

Add pre-commit checks via lpci

Rather than having two different linters that might potentially
disagree, I removed the older one that was done via `flake8` in turnip's
own virtual environment rather than via `pre-commit`. I updated
`requirements.txt` with the aid of `pip freeze` - this found a few
missing entries as well as the ones I was able to remove.

Succeeded
[SUCCEEDED] docs:0 (build)
[SUCCEEDED] lint:0 (build)
12 of 2 results
4a84af8... by Colin Watson

pre-commit autoupdate

Merged from https://code.launchpad.net/~cjwatson/turnip/+git/turnip/+merge/452349

a6052e9... by Colin Watson

pre-commit autoupdate

82973ed... by Colin Watson

Apply pyupgrade

Merged from https://code.launchpad.net/~cjwatson/turnip/+git/turnip/+merge/449471

834784f... by Guruprasad

Update the development environment setup docs to remove bionic

Merged from https://code.launchpad.net/~lgp171188/turnip/+git/turnip/+merge/449449