lp:~cjwatson/launchpad/export-git-repositories-new

Created by Colin Watson and last modified
Get this branch:
bzr branch lp:~cjwatson/launchpad/export-git-repositories-new
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Colin Watson
Project:
Launchpad itself
Status:
Development

Recent revisions

19055. By Colin Watson

Fix GitRepositorySet.new, and export it on the webservice.

This was previously untested, and had been broken since r18222.

Now that namespace.createRepository can create the repository on the hosting
service, we can safely export this to create a bare repository via the API.
For example, this allows snapcraft to create a temporary repository, issue
an access token to it, and push code to it, all without needing to configure
an SSH key.

19054. By Colin Watson

Push Git hosting creation down from XML-RPC endpoint to model.

Having the creation of the actual repository on disk be done by the XML-RPC
endpoint makes it difficult to expose other methods of creating
repositories.

I rearranged how target and owner defaults are set. We have to create the
repository on the hosting service as the last step to avoid problems with
rolling back transactions, so pushing this part down to the model also
requires pushing down target/owner default handling, and the callback
mechanism previously in place wasn't very suited to that.

I had to adjust the permission check in
GitRepositorySet.setDefaultRepository slightly, because pushing down
target/owner default handling is easier if the Unauthorized exception
message is more accurate. setDefaultRepositoryForOwner already raised
exceptions with accurate messages.

19053. By Launchpad PQM Bot

[testfix][r=cjwatson][no-qa] Fix doctests to cope with added
 Content-Security-Policy header.

19052. By Launchpad PQM Bot

[r=bloodearnest][no-qa] Set "Content-Security-Policy: frame-ancestors
 'self';
 " as well as "X-Frame-Options: SAMEORIGIN", for improved browser
 compatibility.

19051. By Launchpad PQM Bot

[r=bloodearnest][no-qa] Remove parts of lp.code.mail.patches that are
 unmodified from bzrlib.

19050. By Launchpad PQM Bot

[r=wgrant][bug=1824399] Add and export
 IGitRepository.issueAccessToken.

19049. By Launchpad PQM Bot

[r=wgrant][bug=1824399][incr] Make the Git XML-RPC API honour user
 macaroons.

19048. By Launchpad PQM Bot

[r=wgrant][bug=1842658][incr] Add IPackageset.isSourceIncluded.

19047. By Launchpad PQM Bot

[r=wgrant][no-qa] Allow ProductReleaseFinder to use ftp:// URLs.

19046. By Launchpad PQM Bot

[r=cjwatson][bug=1842919] Remove null characters in copyright field
 of sourcepackagerelease

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:launchpad
This branch contains Public information 
Everyone can see this information.

Subscribers