git-ubuntu currently relies on some of the host perl modules for some
commands. For instance, running `git ubuntu merge start` triggers
dpkg-parsechangelog, which is executed with a shebang pointing to the
host system's perl binary. Moreover, importing DPKG forces it to fetch
the module from the host. This makes the current git-ubuntu snap, which
is based on 20.04 core, incompatible with jammy.
I'm making this change in order to separate the ownership/management of
the repositories from the development of git-ubuntu itself. This should
help prevent accidental pushes to the official import repositories,
since only the importer should normally be doing that.
Most of the code changes are for documentation or example scripts not in
production.
In gitubuntu/importer.py, we change the default, and also the magic
handling difference that if the official destination is used then the
local refs used are all prefixed ("namespaced") with "importer/". This
is the one place that might affect production behaviour, so I'm changing
it to be on the safe side. This change means a flag day to land into the
importer service, but this seems easier than removing or parameterising
the magic.
In gitubuntu/submit.py, we change the default destination and
understanding that this magic team name corresponds to the "pkg" remote.
A grep through the source found no other usd-import-team references
except the list email address and the use of the team for the hosting of
git-ubuntu itself, which aren't relevant to changing the repository
owner.
prepare-upload is changed to provide two subcommands. "args" does what we
did previously. "mangle" pushes like "args" but then mangles an existing
changelog file to add the headers as required.