lp:~cjwatson/turnip

Owned by Colin Watson
Get this repository:
git clone https://git.launchpad.net/~cjwatson/turnip
Only Colin Watson can upload to this repository. If you are Colin Watson please log in for upload directions.

Branches

Name Last Modified Last Commit
master 2023-10-19 15:52:36 UTC
Add ref creation POST endpoint to turnip-api

Author: Bowen Fan
Author Date: 2023-10-19 15:52:36 UTC

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

get-merge-proposal-info 2023-08-07 10:27:06 UTC
Use a more general interface for getting merge proposal information

Author: Colin Watson
Author Date: 2023-08-07 10:27:04 UTC

Use a more general interface for getting merge proposal information

When pushing a branch, we'd like to be able to link to an existing merge
proposal if there is one, rather than only ever giving people a URL to
create a new merge proposal (which will fail if there's already an
active one). The existing `getMergeProposalURL` XML-RPC method can't
quite support this, so call a new `getMergeProposalInfo` method that
also returns the preceding text.

LP: #1910680

bootstrap-test-path 2020-08-25 08:58:16 UTC
Make sure /usr/sbin is on $PATH for bootstrap-test

Author: Colin Watson
Author Date: 2020-08-25 08:58:16 UTC

Make sure /usr/sbin is on $PATH for bootstrap-test

rabbitmqctl is in /usr/sbin, which isn't always on $PATH.

log-missing-stop 2016-05-24 05:52:21 UTC
Make log API ignore a missing stop commit

Author: Colin Watson
Author Date: 2016-05-24 05:52:21 UTC

Make log API ignore a missing stop commit

Determining whether the stop commit exists in advance requires an extra
round-trip, and clients are likely to just fall back to omitting the
stop commit anyway. start_time and end_time provide an alternative way
to bound the set of commits which can be used in addition to a
possibly-missing stop commit.

log-by-date 2016-05-24 05:39:41 UTC
Add start_time and end_time parameters to log API

Author: Colin Watson
Author Date: 2016-05-24 05:37:06 UTC

Add start_time and end_time parameters to log API

This is useful for bounding the set of commits returned in cases where
we may not have a reliable stop commit.

15 of 5 results
This repository contains Public information 
Everyone can see this information.

Subscribers