~nacc/git-ubuntu:importer-test-messages

Last commit made on 2018-04-10
Get this branch:
git clone -b importer-test-messages 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:
importer-test-messages
Repository:
lp:~nacc/git-ubuntu

Recent commits

79f54b6... by Nish Aravamudan

importer: stub out and test tag and commit message functions

40e0da0... by Nish Aravamudan

importer: drop unused variable

f4c60eb... by Nish Aravamudan

source_builder: fix changelog_versions handling

Add unit tests to catch the mistaken code.

d28be11... by Nish Aravamudan

test_fixtures: for simplicity chdir to the repo local directory

This ensures the users of the fixtures do not need to do it
for themselves. This is only strictly required for importer testing,
which assumes it is in the correct directory.

6a8fb8d... by Nish Aravamudan

test_fixtures: fix typos in comments

38b2ef2... by Nish Aravamudan

source_builder: add file_contents attribute to SourceSpec

This allows for arbitrary file creation in the source package, to
manipulate the Git tree contents.

Also add a unit test.

bd62529... by Nish Aravamudan

source_builder_test: fix docstrings

e11e896... by Nish Aravamudan

source_builder: add second assertion

This assertion is complementary to the other. Also add a test.

---

Originally, I had included a change that automatically set the native
variable based upon the version passed in (so you only had to specify
one of version or native), but I'm no longer confident that is what you
want the API to be. This change is sufficient to catch the issue and
ensures 100% code coverage with the test.

649ebc6... by Nish Aravamudan

git_repository: drop ensure_importer_branches_exist

Much like 1d658869b56b ("Create dsc branch on first use"), create the
pristine-tar necessary branches on first use, which all occurs within
the context manager in git_repository.py.

This should only result in one functional change, but should ensure
there are no side-effects of simply instantiating a GitUbuntuRepository
object and the helper function is no longer necessary.

The functional change is that when there is only publishing history in
one of Debian or Ubuntu, there will only be pristine-tar related
branches for the specific distribution. This requires, in turn, ensuring
that pristine_tar_list does not create any branches, so that `git ubuntu
build`'s usage continues to work as expected.

It is a separate issue as to whether these branches should exist in the
first place or not.

LP 1733895

---

1ea003b... by Nish Aravamudan

git_repository: add docstring to pristine_tar methods