Summary: | [git-webkit] Forward errors from log and blame | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jonathan Bedard <jbedard> | ||||||
Component: | Tools / Tests | Assignee: | Jonathan Bedard <jbedard> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | aakash_jain, webkit-bug-importer | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=228619 | ||||||||
Attachments: |
|
Description
Jonathan Bedard
2021-07-29 16:40:03 PDT
Created attachment 434628 [details]
Patch
Comment on attachment 434628 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=434628&action=review rs=me > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/command.py:258 > + if not log_output.returncode: Might be more clear to explicitly compare with 0 > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/command.py:260 > + sys.stderr.write(line) why not print? Also, can you avoid this for loop and directly print whole thing in a single statement? (In reply to Aakash Jain from comment #3) > Comment on attachment 434628 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=434628&action=review > > rs=me > > > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/command.py:258 > > + if not log_output.returncode: > > Might be more clear to explicitly compare with 0 It might be 'None', particularly for `git log` or `svn log` > > > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/command.py:260 > > + sys.stderr.write(line) > > why not print? Also, can you avoid this for loop and directly print whole > thing in a single statement? Created attachment 434643 [details]
Patch for landing
Committed r280483 (240118@main): <https://commits.webkit.org/240118@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434643 [details]. |