Created by Colin Watson on 2019-09-26 and last modified on 2019-09-26
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

Colin Watson
Launchpad itself

Recent revisions

19055. By Colin Watson on 2019-09-26

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 on 2019-09-26

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

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 on 2019-09-16

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

19052. By Launchpad PQM Bot on 2019-09-16

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

19051. By Launchpad PQM Bot on 2019-09-16

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

19050. By Launchpad PQM Bot on 2019-09-16

[r=wgrant][bug=1824399] Add and export

19049. By Launchpad PQM Bot on 2019-09-10

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

19048. By Launchpad PQM Bot on 2019-09-10

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

19047. By Launchpad PQM Bot on 2019-09-10

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

19046. By Launchpad PQM Bot on 2019-09-05

[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:
This branch contains Public information 
Everyone can see this information.