On 02/06/20 11:18 +0100, Jonathan Wakely wrote:
On 02/06/20 11:37 +0200, Martin Liška wrote:
On 6/2/20 11:23 AM, Jonathan Wakely wrote:
On 02/06/20 10:22 +0100, Jonathan Wakely wrote:
This error is wrong, the line is what exceeds LINE_LIMIT characters, the
limit doesn't exceed itself.
contrib/ChangeLog:
* gcc-changelog/git_commit.py (GitCommit.parse_changelog): Fix
* grammar.
OK for master?
commit ba4ddb1023844202f84a32275e451f9c7a0bb7b7
Author: Jonathan Wakely <jwak...@redhat.com>
Date: Tue Jun 2 10:19:42 2020 +0100
contrib: Improve error text for overlong ChangeLog lines
I used "contrib:" as the component tag here. We should probably decide
if that's right, or if it should be "git_commit" or "gcc-changelog"
(both have been used for recent commits).
I'm not much used to the components. Btw. do we have it documented somewhere?
I would use gcc-changelog.
Done, thanks.
And this fixes the test that now fails (sorry, I didn't know about the
tests). Committed to master.
commit 54a0eb7fa5f504bf26be03060b779f756d998be5
Author: Jonathan Wakely <jwak...@redhat.com>
Date: Tue Jun 2 11:41:28 2020 +0100
gcc-changelog: Update test to match new error text
contrib/ChangeLog:
* gcc-changelog/test_email.py (TestGccChangelog.test_long_lines):
Update expected error message.
diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py
index 158eb651367..2465669786e 100755
--- a/contrib/gcc-changelog/test_email.py
+++ b/contrib/gcc-changelog/test_email.py
@@ -176,7 +176,7 @@ class TestGccChangelog(unittest.TestCase):
def test_long_lines(self):
email = self.get_git_email('long-lines.patch')
assert len(email.errors) == 1
- assert email.errors[0].message == 'line limit exceeds 100 characters'
+ assert email.errors[0].message == 'line exceeds 100 character limit'
def test_new_files(self):
email = self.from_patch_glob('0030')