~racb/git-ubuntu:revert-locale

Last commit made on 2020-08-17
Get this branch:
git clone -b revert-locale 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:
revert-locale
Repository:
lp:~racb/git-ubuntu

Recent commits

c4437e1... by Robie Basak

Revert "Ensure the locale is set consistently"

This reverts commit 6ff151dc208809e1b8e3108c69c05090174e6221.

This commit broke when using the snap on Focal (but not on Bionic) with:

    locale.Error: unsupported locale setting

...when calling locale.setlocale().

Since this is a regression, I'm reverting it immediately.

However I've since learned that locale-specific behaviour is not
activated until locale.setlocale() is called explicitly anyway, so
perhaps ensuring consistent behaviour despite locale settings is not as
important or necessary as I had previously thought.

649af7b... by Robie Basak

Add changelog date overrides

To handle the edge case of changelog entry signoff line dates not being
parseable due to not being valid dates, the spec now requires that we
revert to using the timestamp of the source package data instance
instead (which is what we always use for the commit date). This change
implements this requirement and adds overrides for the initial set of
changelog dates to be ignored as defined by the spec.

e767016... by Robie Basak

source_builder: add changelog date customization

Allow tests to specify the date used in the changelog entry of a
source_builder.Source created using a source_builder.SourceSpec.

c82d28a... by Robie Basak

Add author_date override support

Allow the caller to override the author_date used when calling
GitUbuntuRepository.commit_source_tree(). This allows for adding
changelog date overrides in a subsequent commit in the case that illegal
changelog dates cannot be parsed.

fe87efa... by Robie Basak

Merge branch 'multiple-angle-brackets'

45e3393... by Andreas Hasenack

Import fish

1f39102... by Robie Basak

Fix extra angle bracket parsing

RFCs 5321/5322/6531 make it clear that an angle bracket is not a valid
part of an email address, so we can correctly parse extra ones as not
being part of the email address.

This requires making the '.*' capture of the email address non-greedy by
appending a '?', so that the greedy '<+' and '>+' can grab the angle
brackets during the regexp match.

3cfb48a... by Robie Basak

Add test case for extra angle bracket parsing

In puppet 0.24.4-6, the changelog entry has an extra closing angle
bracket around the email address in the sign-off line. As an angle
bracket is unambiguously not part of the email address (according to
RFCs 5321/5322/6531), this can still be unambiguously parsed, so we add
a failing test case for it to be fixed in a subsequent change.

2e773a1... by Robie Basak

Merge branch 'poller-logging'

d6eb8c2... by Robie Basak

Merge branch 'empty-changelog-author'