~racb/git-ubuntu:applied-enum

Last commit made on 2020-02-04
Get this branch:
git clone -b applied-enum 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:
applied-enum
Repository:
lp:~racb/git-ubuntu

Recent commits

369f645... by Robie Basak

Collapse dual (un)applied code using an enum

In various places we have two implementations of near-identical code
where the only difference is whether they act on unapplied or applied
branches, tags or structure. Ultimately they do need to be handled
differently at some point, but most of the code in the middle of the
call graph does not need to care.

To avoid code duplication we define a PatchState enum and can then drop
half of the middling code by simply passing through the "unapplied-ness"
or "applied-ness" as a parameter.

The following functions are removed from gitubuntu.git_repository.
Instead, the unapplied previous equivalent should be used with
patch_state=PatchState.APPLIED:

applied_reimport_tag_prefix
applied_reimport_tag
applied_tag

The following methods are removed from
gitubuntu.git_repository.GitUbuntuRepository. Instead, the unapplied
previous equivalent should be used with patch_state=PatchState.APPLIED:

get_applied_reimport_tag
get_all_applied_reimport_tags

A grep suggests that the only callers are importer.py and
importer_test.py; these are refactored as part of this change, dropping
duplication where there was any.

"git ubuntu tag" is the obvious CLI command that might have been
affected, but it doesn't appear to need any of these functions or
methods. Perhaps it should, but that's a job for a future refactoring.

This change does not cover every instance of code duplication or where
refactoring to use the new enum might be appropriate; we merely fix the
code that needed touching anyway, leaving other refactoring for the
future.

This change should not result in any functional changes.

bc3250c... by Andreas Hasenack

add ipmctl to the persistent memory stack

ebd8c66... by Andreas Hasenack

add isc-kea

67b8c0b... by Andreas Hasenack

Group and order my requested packages

b1eb31c... by Robie Basak

version: bump to 0.9.1

9b8aad1... by Robie Basak

self-test: be more explicit when failing

The script will exit non-zero if any of a set of tests fail, but it
isn't necessarily obvious from the output what was a warning and what
caused the failure. Let's make this obvious in the output. In all cases
where we set a future failure, explicitly tell the caller via stdout.

85ec81a... by Robie Basak

Drop pin on lazr.restfulclient

lazr.restfulclient 0.14.3 has been released, causing the self-test
error:

  gitubuntu 0.9.0 has requirement lazr.restfulclient==0.14.2, but you have lazr.restfulclient 0.14.3.

There is no need to pin this, so drop the pin.

2fe6128... by Robie Basak

version: bump to 0.9.0

c382c9d... by Andreas Hasenack

Add linux-snapdragon to import blacklist

From Andreas' pastebin.

aa40af4... by Robie Basak

Merge branch 'phasing-defaults'