want a way to push a new branch marking it private

Bug #750894 reported by Martin Pool
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Launchpad itself
Triaged
Low
Unassigned

Bug Description

It would be good if there was a way to push a branch to Launchpad and also set its privacy at the same time. Perhaps even better if this worked the same way on non-Launchpad destinations.

This should be done in a way that's not racy: ie creating the branch and then making it private is not as good.

On lp one way to do this is to first create a new Branch object with private=true, then push to it.

Jonathan Lange (jml)
tags: added: privacy
removed: launchpad
Changed in launchpad:
status: Confirmed → Triaged
importance: Medium → Low
Revision history for this message
Martin Pool (mbp) wrote :

It may be that the Launchpad API is already enough to implement this by only changing bzr.

Changed in bzr:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

You can, through the lp api, do

  br.explicitly_private = True

For many branches this will raise BranchCannotBePrivate but we could relax that, and it's mostly a separate issue anyhow. Some branches have a policy that allows them to be set private.

So we mostly need glue from the bzr ui (and probably configuration) so it will set this after it creates the branch, before it pushes anything in to it.

Revision history for this message
Curtis Hovey (sinzui) wrote :

Lp API now permits the branch owner (the person doing the push) to call branch.transitionToInformationType(information_type="<Private Security|Private|Proprietary>") to make a branch private.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.