~nacc/git-ubuntu:repo_builder-patches-applied

Last commit made on 2018-04-06
Get this branch:
git clone -b repo_builder-patches-applied 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:
repo_builder-patches-applied
Repository:
lp:~nacc/git-ubuntu

Recent commits

3d8ed66... by Nish Aravamudan

repo_builder.SourceTree: allow for patches to be applied

353cf59... by Nish Aravamudan

dsc_to_tree_hash: add ability to get final patches-applied tree

This is needed for future tests for the patches-applied code.

50ce40e... by Nish Aravamudan

repo_builder: add Repo.copy

This will allow for importer tests to start with a given
Repo object, specify the modifications to it, and then
generate the expected result structurally. The original
and modified-copy can then be compared with the to-be-written
Repo comparator.

dfa5ff2... by Nish Aravamudan

repo_builder: specify UTC offset

9befa85... by Nish Aravamudan

repo_builder: add Branch and Tag classes

These classes are used to extend the Repo class to include their
corresponding refs.

This also requires changing when replace_placeholders is called for
Repo() objects. We want to be able to run tests against Repo() objects
which might be otherwise invalid, so we need to defer the
replace_placeholders() call until write().

d82631b... by Nish Aravamudan

repo_builder.Repo: handle empty repository

For the purposes of tests, we might create fully empty repositories
(e.g., the default case for the importer, where nothing has been
imported before). Support this correctly in the return case for the
Repo.write() method.

afdd357... by Nish Aravamudan

repo_builder: rename CommitGraph to Repo

f38dd11... by Nish Aravamudan

repo_builder: increase code coverage to 100%

Add two simple tests, the first of which is just a parameterization
addition to the replace_placeholders test for SourceTree (identical to
the case for Tree).

The second is checking the error paths for replace_placeholders when
using an undefined placeholder name. We cannot use replace_placeholders
to test this, though, as find_obj() is called before we get to replace()
and it will end up raising its own exception. This implies we cannot
reach this code in the intended API usage.

06bdf26... by Nish Aravamudan

repo_builder: strengthen check in test_replace_placeholders

680695f... by Nish Aravamudan

repo_builder: rename test_placeholder -> test_replace_placeholders