~racb/git-ubuntu:fix-remote-add-changelog-notes

Last commit made on 2020-05-06
Get this branch:
git clone -b fix-remote-add-changelog-notes https://git.launchpad.net/~racb/git-ubuntu
Only Robie Basak can upload to this branch. If you are Robie Basak please log in for upload directions.

Branch merges

Branch information

Name:
fix-remote-add-changelog-notes
Repository:
lp:~racb/git-ubuntu

Recent commits

30569f8... by Robie Basak

Don't add changelog notes fetch refspec for !pkg

The changelog notes fetch respec should only be added for the main 'pkg'
remote (the "base remote" in the code), as other remotes are not
expected to have these.

This fixes a bug:

$ git ubuntu remote add <anything other than pkg>
fatal: Couldn't find remote ref refs/notes/commits

We don't currently have test coverage for the affected methods, but I
have tried to reduce tech debt somewhat at least by adding docstrings to
clarify intended behaviour.

Thanks to Andreas Hasenack for finding this in the edge channel early.

305b7b2... by Robie Basak

version: bump to 0.10

7a60e7f... by Robie Basak

Preserve MPs on reimport

When reimporting, instead of deleting a git repository before repushing
it, we can force push all our new refs and ensure that refs not being
pushed get deleted using --prune. This creates the same effect but
allows us to preserve old merge proposals.

There is a possibility that some configuration in the git repository
will be left behind from a previous import. However all configuration
(eg. the HEAD pointer) is reset by the importer on every run, so
everything that the importer touches will get fixed. Anything else can
be considered out of scope for --reimport to achieve.

The default repository for the source package will therefore not be
reset; if it was set to the old repository, it will continue to point to
the "new" one. This is actually what we want, so is fine.

13ad773... by Robie Basak

Merge branch 'fix-head-detection'

edcfc90... by Robie Basak

Merge branch 'clone-default-repository'

fbd62d4... by Robie Basak

Merge branch 'clean-up-changelog-notes'

0c56b1b... by Robie Basak

Merge branch 'adjust-name-and-email-to-spec'

93999c6... by Robie Basak

Fix Debian/Ubuntu HEAD branch detection

repo.references provides a list of pygit2.Reference objects, not strings
of their names. Just try the lookup method directly instead.

beed1a4... by Robie Basak

Merge branch 'clear-notes-before-reimport'

8070d30... by Robie Basak

Add clevis to whitelist

Requested at https://lists.launchpad.net/usd-import-team/msg00026.html