~racb/git-ubuntu:queue-fixes-3

Last commit made on 2017-05-31
Get this branch:
git clone -b queue-fixes-3 https://git.launchpad.net/~racb/git-ubuntu
Only Robie Basak can upload to this branch. If you are Robie Basak please log in for upload directions.

Branch merges

Branch information

Name:
queue-fixes-3
Repository:
lp:~racb/git-ubuntu

Recent commits

4a7a66c... by Robie Basak

queue: stop tracking srcpkg_name

We don't need it. Every series import is independent of the other. This
is intentional as the branches may change over a package rename; yet the
queue sync operation is still well-defined in this case.

35c9c01... by Robie Basak

queue: handle KeyError on lookup_reference()

lookup_reference() raises KeyError rather than returning None, so handle
it this way instead.

Also explicitly document this behaviour in GitUbuntuRepository as we
rely on it.

f19b0fb... by Robie Basak

queue: correctly retrieve series list

We cannot use GitUbuntuSourceInformation because to construct one needs
a source package name, and when we start the loop we do not have one.
However, we do have an lp object and can simply retrieve all current
series names from there.

Further, we do actually want to include the development series, since
NEW packages may need processing from there, so we also drop the
"stable" filter.

5dde747... by Robie Basak

queue: call fetch_base_remotes correctly

fetch_base_remotes() requires an argument called must_exist, so set it.
For now, we assume must_exist=True. In the future it makes sense for
queue handling to work even without an existing repository, for example
in the case of NEW. But for the moment we can get things working
without.

1f39b34... by Nish Aravamudan

git ubuntu build: fix Dsc object class

f2428ef... by Nish Aravamudan

git ubuntu queue: 'HEAD' does not need to exist

We only need 'HEAD' in the current code to extract the source package
name, but we don't actually use that value (and/or we assume that value
is consistent across all the devel branches). Rather than implicitly
assume that, actually check that is true, but also use the first devel
branch's source package as the initial value to compare against.

At some point in the future, we can make queue sync more flexible to
handle a repository with multiple source packages locally, but that
would require some refactoring of our code (e.g., namespacing the
remotes by source package name).

f389d76... by Nish Aravamudan

git ubuntu queue: fetch base remote to ensure we are current

Note that this will not work if we run `git clone` then `git ubuntu
queue sync`.

c1058bd... by Nish Aravamudan

Revert "GitUbuntuRepository: take source package name in constructor"

This reverts commit b531df42c5e757eb7f0f236eb2b449d58315a9d0.

This also fixes our usage of the repository to match the newly defined
spec in doc/README.repository.

495d4ae... by Nish Aravamudan

gitubuntu: rename gitubuntu.srcpkg to gitubuntu.default_srcpkg in git-config

13d54ca... by Nish Aravamudan

git ubuntu import: patches unapplied import failure is fatal