~nacc/git-ubuntu:gu-review

Last commit made on 2017-09-13
Get this branch:
git clone -b gu-review 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:
gu-review
Repository:
lp:~nacc/git-ubuntu

Recent commits

5c40be6... by Nish Aravamudan

review: drop unused sys

d1f6a0c... by Nish Aravamudan

review: return main from cli_main

1ff031b... by Nish Aravamudan

review: drop epilog from subparser

Will be squashed.

4ca0b55... by Nish Aravamudan

git ubuntu review: add new subcommand

Given a MP URL, this attempts to provide a local directory to use for
reviewing the MP (and allows one to auto-approve with lint results).

LP: #1702960

24e4372... by Nish Aravamudan

gitubuntu/*: refactor cli_main to return 0/1

Update __main__ to call sys.exit(args.func()), rather than using sys.exit.
This improves the modularity of the main() functions throughout.

f3a0bac... by Nish Aravamudan

import: refactor override_parents to raise ParentOverrideError

This helps put control flow logic only at the top-level.

257a5f6... by Nish Aravamudan

build: update check_repository to return a boolean

dce62ca... by Nish Aravamudan

versioning: add support for non-series information in the version string

libvirt uploads (SRUs) have versions like 1.2.2-0ubuntu13.1.23 which break
our parsing, which assumes anything between ubuntu_maj and ubuntu_min
is either a series or invalid. Extend our parsing to allow for an "other"
field, which is set when the substring between maj and min cannot be
parsed as a version.

LP: #1716737

4fd9289... by Nish Aravamudan

git_repository::fetch*: set GIT_TERMINAL_PROMPT=0 in env

When using http/https, LP will prompt for auth if a repository
is not found, because LP cannot distinguish between a private
repository (permission issue) and a non-existent repository until
the user is authenticated. This causes git itself to prompt
for authentication on the command-line, which we do not want. Since
we are only using http/https for fetch, disable the Git terminal
prompt via an environment variable. This does make clone and
review noisier, but that can be resolved in a future commit.

LP: #1716745

3debe45... by Nish Aravamudan

git_repository: use top-level-default for fetch_proto if not specified

This should not result in any functional change, but makes eventual
git-ubuntu review easier to implement.