usd-importer:master

Last commit made on 2018-01-04
Get this branch:
git clone -b master https://git.launchpad.net/usd-importer
Members of Ubuntu Server Dev import team can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
master
Repository:
lp:usd-importer

Recent commits

35a2b40... by ChristianEhrhardt on 2018-01-04

add ubuntu-fan to whitelist

Signed-off-by: Christian Ehrhardt <email address hidden>

967f050... by Robie Basak on 2017-12-05

Merge remote-tracking branch 'paelzer/add-ubuntu-desktop-sniff-packages' into HEAD

37b9ef0... by ChristianEhrhardt on 2017-11-20

Add a few packages for Ubuntu-Desktop

The Desktop team was eager to take a look at git ubuntu since the rally
in New York. They requested three packages to take an initial look at
the git ubuntu approach together with their community.

Note: rbasak made didrocks aware of the outstanding full reimport, but
that was declared no problem for the current stage of intended usage by
the Desktop Team.

Signed-off-by: Christian Ehrhardt <email address hidden>

b1551b1... by Robie Basak on 2017-11-15

Initial tests for _devel_branch_updates

8a605fe... by Robie Basak on 2017-11-15

Adjust head_versions structure

Let's simplify this a little. Instead of containing a pygit2.Reference,
resolve it to a commit hash string first to simplify testing.

While I'm there, as we only need two elements, just use a two-tuple for
the dictionary values.

f060cc4... by Robie Basak on 2017-11-15

Factor out and rework _devel_branch_updates

Move the core functionality into _devel_branch_updates, making
update_devel_branches a thin wrapper to it. _devel_branch_updates now
has no dependencies so should be easier to test.

Rename namespace, applied_prefix to ref_prefix. _devel_branch_updates
can be simplified by collapsing namespace and applied_prefix into a
single concept ref_prefix.

Move printing to wrapper function. Really the inner function should do
computation only and leave it to the caller to report warnings etc. This
will prevent noise when under test.

_devel_branch_updates returns None for commit hashes, in which case the
intention is that the caller will suppress setting those refs but will
be able to note which refs are not being set. This is useful to maintain
reporting.

The debug and warning messages are now slightly changed since less
information is available one level up the stack. It should still be
sufficient for debugging or warning purposes.

8af442a... by Nish Aravamudan on 2017-11-07

importer: rework and move devel pointer moving

After discussion with Robie on IRC, we decided that 0f3c943054ab
("import: drop publishing parent functionality") and 5aa33fa08078 ("Also
reset devel heads") introduced a regression in the semantics of the
devel pointers.

Before those changes, the devel pointers were merged up so as to be
fast-forwarding, as we imported publication entries, if the publication
entry was newer than the current devel pointer. In other words, the
devel pointers were part of the commit graph itself.

After those changes, the devel pointers are more like symbolic
references, describing meta-state about the commit graph, rather than
integral to the graph itself:

A given series devel branch, after a successful import, points to the
latest publication record in a given series.

The ubuntu/devel branch, after a successful import, points to the latest
series devel branch.

Given these 'rules', we can stop updating the devel pointers in the main
import loop and just do so after we are done importing. All series
branch pointers are updated, which is unnecessary but will generally be
a no-op. This allows the method to not be aware of reimporting or not.

LP: #1730655

Fixes: 0f3c943054ab ("import: drop publishing parent functionality")
Fixes: 5aa33fa08078 ("Also reset devel heads")

ab12071... by Nish Aravamudan on 2017-11-07

source_information: add API to obtain all series objects/names

f3ff76d... by Nish Aravamudan on 2017-11-07

source_information: cleanup formatting per style

2b8c190... by Nish Aravamudan on 2017-11-07

source_information: fix incorrect API comments