~nacc/git-ubuntu:gitubuntu-submit-fixes

Last commit made on 2017-07-14
Get this branch:
git clone -b gitubuntu-submit-fixes https://git.launchpad.net/~nacc/git-ubuntu
Only Nish Aravamudan can upload to this branch. If you are Nish Aravamudan please log in for upload directions.

Branch merges

Branch information

Name:
gitubuntu-submit-fixes
Repository:
lp:~nacc/git-ubuntu

Recent commits

aa66e90... by Nish Aravamudan

Address review comments

Will be squashed up

2f18b89... by Nish Aravamudan

fix nearest_remote_branch formatting

will be squashed up

56888fa... by Nish Aravamudan

GitUbuntuRepository: fix sort of nearest_remote_branch

Reverse is the ... reverse ... of what I thought it meant, and returns oldest
results first.

Will be squashed up

2b931c6... by Nish Aravamudan

git ubuntu submit: fail if unable to auto-determine branch.

Will be squashed up.

33541ca... by Nish Aravamudan

git ubuntu submit: derive remote branch by default

The most common case will be clone and submit, optimize for that case.

If that derivision is incorrect, the user can pass --target-user and
--target-branch.

48f1ebf... by Nish Aravamudan

gitubuntu/git_repository: add nearest_remote_branch API

Implement commented algorith, which will walk back from commitish trying to find
the nearest commit that is the tip of a remote branch.

04eaf1c... by Nish Aravamudan

gitubuntu/git_repository: fix remote branch lookup

Currently, the remote branches fail to lookup because they only resolve when we
tell pygit2 that they are remote.

c7e5381... by Nish Aravamudan

git ubuntu clone: pygit2 may not be installed

It is an external package, use our pattern for it.

98b149c... by Robie Basak

importer: push all refs atomically

Push any newly imported branches simultaneously with any new import tags
and atomically. This prevents any partial update and restores importer
idempotency.

This requires support for --atomic. It does exist on Xenial and seems to
work with Launchpad. I think this should be sufficient for our purposes.

LP: #1704139

65b76b7... by Robie Basak

queue: do not clobber parent in series iteration

If parent gets set for one series, it ends up being set for all of them,
which is wrong. Deconflate the parent requested by the caller from the
parent selected for use for a particular series by calling the latter
series_parent instead.