Merge lp:~tsimonq2/ubuntu-archive-tools/change-default-branch-when-branch-made-git into lp:ubuntu-archive-tools
Status: | Merged |
---|---|
Merged at revision: | 1148 |
Proposed branch: | lp:~tsimonq2/ubuntu-archive-tools/change-default-branch-when-branch-made-git |
Merge into: | lp:ubuntu-archive-tools |
Diff against target: |
61 lines (+20/-3) 1 file modified
branch-seeds (+20/-3) |
To merge this branch: | bzr merge lp:~tsimonq2/ubuntu-archive-tools/change-default-branch-when-branch-made-git |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Approve | ||
Steve Langasek | Pending | ||
Review via email: mp+335863@code.launchpad.net |
Description of the change
This is related to the merge proposal that was made earlier today, so adding Steve as a reviewer, but I made this a separate MP for a couple of reasons:
1. The nature of the change is a bit different, and if discussion is needed, is likely different than the discussions needed in the other MP.
2. I wanted to get the other MP done and merged so there's a basis; the default branch could always be changed manually pretty easily, but doing it automatically is a bit of an enhancement.
3. I was having some problems working with launchpadlib that were since solved in #launchpad, thanks nacc and cjwatson!
Here's what this actually does:
1. It adds Git support to the already existing remote_branch function, and does it in the same sort of way as Bazaar (I would be happy to figure out how to convert these to the respective Python libraries if the reviewers think it would be a good prerequisite to merging). This also adds an additional argument to be passed, and it's used in a way that would allow passing of the existing vcs variable, to not overcomplicate things.
2. This uses https:/
3. This changes the Launchpad API login to using the devel interface, because after discussing with cjwatson in #launchpad it was determined that the Git API functions aren't exposed on anything but devel. Should I leave a code comment?
Thanks.
No need for a comment regarding using the devel API version; that should be normal practice for most new scripts anyway.