Package: git-ubuntu / 1.1-2

Metadata

Package Version Patches format
git-ubuntu 1.1-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
Drop unused petname.patch | (download)

doc/README.md | 2 1 + 1 - 0 !
gitubuntu/build.py | 1 0 + 1 - 0 !
setup.py | 1 0 + 1 - 0 !
3 files changed, 1 insertion(+), 3 deletions(-)

 drop unused petname

The Python library `petname` is not used any more.

Fixes: f2dc622ecb8b ("Remove build command")
man Fix bad whatis entries.patch | (download)

man/man1/git-ubuntu-clone.1 | 2 1 + 1 - 0 !
man/man1/git-ubuntu-export-orig.1 | 2 1 + 1 - 0 !
man/man1/git-ubuntu-import.1 | 2 1 + 1 - 0 !
man/man1/git-ubuntu-queue.1 | 2 1 + 1 - 0 !
man/man1/git-ubuntu-remote.1 | 2 1 + 1 - 0 !
man/man1/git-ubuntu-submit.1 | 2 1 + 1 - 0 !
man/man1/git-ubuntu-tag.1 | 2 1 + 1 - 0 !
7 files changed, 7 insertions(+), 7 deletions(-)

 man: fix bad whatis entries

lintian complains about bad-whatis-entry: A manual page should start
with a NAME section, which lists the program name and a brief
description. The NAME section is used to generate a database that can be
queried by commands like apropos and whatis. You are seeing this tag
because lexgrog was unable to parse the NAME section. Listed items may
not contain any spaces. A manual page for a two-level command such as fs
listacl must look like fs_listacl so the list is read correctly.

test call dch with vendor Ubuntu in reconstruct changelog.patch | (download)

bin/git-reconstruct-changelog | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 test: call dch with --vendor=ubuntu in reconstruct-changelog

test_reconstruct_changelog fails on Debian unstable:

```
__________________________ test_reconstruct_changelog __________________________

pygit2_repo = pygit2.Repository('/tmp/tmp5ktk68oo/.git/')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7b447f19f2f0>

    @pytest.mark.skipif(
        ENTRY_POINT_TYPE is None,
        reason="Entry point testing not available",
    )
    def test_reconstruct_changelog(pygit2_repo, monkeypatch):
        '''The reconstruct-changelog endpoint should add the expected commit'''
        monkeypatch.setenv('DEBFULLNAME', 'Test User')
        monkeypatch.setenv('DEBEMAIL', 'test@example.com')
        Repo(
            commits=[
                Commit(tree=SourceTree(Source()), name='root'),
                Commit(
                    tree=SourceTree(Source(spec=SourceSpec(mutate=1))),
                    message=' * Test changelog entry',
                    name='child',
                    parents=[Placeholder('root')],
                ),
            ],
            tags={'root': Placeholder('root'), 'child': Placeholder('child')},
        ).write(pygit2_repo)
        pygit2_repo.checkout('refs/tags/child')
        subprocess.check_call(
            [get_entry_point('reconstruct-changelog'), 'HEAD^'],
            cwd=pygit2_repo.workdir,
        )
        with open(os.path.join(pygit2_repo.workdir, 'debian/changelog'), 'r') as f:
            changelog_lines = f.read().splitlines()
> assert changelog_lines[0:4] == [
            'source-builder-package (1-1ubuntu1) UNRELEASED; urgency=medium',
            '',
            ' * Test changelog entry',
            '',
        ]
E AssertionError: assert ['source-buil...ngelog entry'] == ['source-buil...og entry', '']
E
submit fix setting commitish_string.patch | (download)

gitubuntu/submit.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 submit: fix setting commitish_string

pylint complains:

```
************* Module gitubuntu.submit
gitubuntu/submit.py:138:53: E0606: Possibly using variable 'commitish_string' before assignment (possibly-used-before-assignment)
```

Fixes: b57968371be5 ("gitubuntu/*: refactor all classes")
test Always set ENTRY_POINT_DIR.patch | (download)

gitubuntu/integration_test.py | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 test: always set entry_point_dir

pylint complains:

```
************* Module gitubuntu.integration_test
gitubuntu/integration_test.py:77:26: E0606: Possibly using variable 'ENTRY_POINT_DIR' before assignment (possibly-used-before-assignment)
```

So always set `ENTRY_POINT_DIR` even when this variable is not used when
`ENTRY_POINT_TYPE` is `None`.

use pygit2 objecttype.patch | (download)

gitubuntu/git_repository.py | 13 7 + 6 - 0 !
gitubuntu/repo_builder.py | 3 2 + 1 - 0 !
gitubuntu/source_builder_test.py | 3 2 + 1 - 0 !
3 files changed, 11 insertions(+), 8 deletions(-)

 replace deprecated git_obj_xxx references

Fix spelling mistake of repository.patch | (download)

man/man1/git-ubuntu-import.1 | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix spelling mistake of repository