WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 27483
diff_parser should accept lines without trailing \n
https://bugs.webkit.org/show_bug.cgi?id=27483
Summary
diff_parser should accept lines without trailing \n
Shinichiro Hamaji
Reported
2009-07-20 23:10:18 PDT
It would be better to normalize the input lines by removing trailing newlines to accept both patch.splitlines() and file object.
Attachments
Patch v1
(3.28 KB, patch)
2009-07-20 23:14 PDT
,
Shinichiro Hamaji
levin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Shinichiro Hamaji
Comment 1
2009-07-20 23:14:08 PDT
Created
attachment 33145
[details]
Patch v1 --- 3 files changed, 29 insertions(+), 2 deletions(-)
David Levin
Comment 2
2009-07-20 23:50:07 PDT
Comment on
attachment 33145
[details]
Patch v1
> diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog
> + > + Normalize the input lines by removing a trailing newline. > + Also, add a case for unittest for newly added files.
I think this reads better: "Also, add a case to the unittest for newly added files." fwiw, it is best to keep your patches focused on one thing and this does a bit more, so the bug doesn't reflect what is being done. However, it is all rather simple and you do describe it, so no need to break it up this time.
David Levin
Comment 3
2009-07-21 03:13:15 PDT
Committed as
http://trac.webkit.org/changeset/46164
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug