~racb/git-ubuntu:exception-handling

Last commit made on 2017-01-19
Get this branch:
git clone -b exception-handling 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:
exception-handling
Repository:
lp:~racb/git-ubuntu

Recent commits

23b578b... by Robie Basak

Correctly instantiate exceptions

We should be raising instances of exception classes, not the classes
themselves.

5d4d786... by Robie Basak

add_and_fetch_remote: improve exception handling

We should check explicitly for the exceptions we can handle rather than
suppressing all of them.

29b6354... by Nish Aravamudan

usd: add support for tab completion

Add dependency on argcomplete, which re-uses argparse data to provide
shell completion.

Note that actually enable the completion, the package will need to be
installed, `sudo activate-global-python-argcomplete` must be run and
then a new shell started.

Signed-off-by: Nishanth Aravamudan <email address hidden>

8d974ea... by Nish Aravamudan

usd import: improve fallback when dpkg-source --print-format fails

We should test debian/source/format, in case `dpkg-source` fails
(LP: #1649646).

Signed-off-by: Nishanth Aravamudan <email address hidden>

53f4922... by Nish Aravamudan

usd import: fix issue with failure to run `gbp import-orig`

If `gbp import-orig` fails, we will raise an exception, but that means
we bypass all the exit cleanup in the function, leading to a broken
repository state.

Signed-off-by: Nishanth Aravamudan <email address hidden>

acbf16e... by Nish Aravamudan

usd-cron: print `usd import` command

ac2e249... by Nish Aravamudan

usd-cron-packages.txt: blacklist lxc, lxd and libvirt

Signed-off-by: Nishanth Aravamudan <email address hidden>

2042cc0... by Nish Aravamudan

usd import: add --patches-applied flag

We currently are facing a few blocking issues with the structure of the
patches-applied branches:

1) util-linux, e.g., is failing to import because
`dpkg-source --print-format` fails. (LP: #1649646).

2) samba fails to import because a historical publish's patchstack does
not apply (possibly due to being more forgiving about fuzz earlier?)
(Discussion at LP: #1649832)

In both cases, we could devise an adjustment to the algorithm to support
'orphan'ing (really someting more than that) failures to get to a
patches-applied state. However, it is unclear how best to tag them, at
this point, and how to, if at all, include them in the history for a
branch. We need to engage the dgit community to determine the right
policy, but in the interest of deploying regular imports, let's simply
disable patches-applied imports for now.

Signed-off-by: Nishanth Aravamudan <email address hidden>

998750f... by Nish Aravamudan

usd-cron: add script that will maintain regular imports

Fairly trivial script to poll launchpadlib for source package publishes
and to run the importer on them.

usd-cron-packages.txt: obtained from
http://paste.ubuntu.com/23407877/plain/, thanks to Scott Moser.

LP: #1648729

Signed-off-by: Nishanth Aravamudan <email address hidden>

54629d1... by Nish Aravamudan

usd tag: fix logical tagging in the merge workflow

When tagging the logical delta, we have dropped all debian/changelog
changes, which means our changelog matches 'old/debian'. If we use
commitish's debian/changelog, then, to extract the tagged version, we'll
end up with the old/debian version. Instead, we want to use the
changelog from old/ubuntu, while still tagging commitish.

LP: #1651113.

Signed-off-by: Nishanth Aravamudan <email address hidden>