RESOLVED FIXED225889
[webkitscmpy] Support branch queries in mock git log
https://bugs.webkit.org/show_bug.cgi?id=225889
Summary [webkitscmpy] Support branch queries in mock git log
Jonathan Bedard
Reported 2021-05-17 14:34:10 PDT
Our `git log` mocks do not support branches, which has some major downsides when developing additional git tooling.
Attachments
Patch (8.74 KB, patch)
2021-05-17 14:37 PDT, Jonathan Bedard
no flags
Patch (8.90 KB, patch)
2021-05-17 16:49 PDT, Jonathan Bedard
no flags
Patch (8.91 KB, patch)
2021-05-17 16:57 PDT, Jonathan Bedard
no flags
Patch (8.19 KB, patch)
2021-05-19 12:14 PDT, Jonathan Bedard
no flags
Patch (9.11 KB, patch)
2021-06-08 13:27 PDT, Jonathan Bedard
no flags
Patch (8.00 KB, patch)
2021-06-16 11:09 PDT, Jonathan Bedard
no flags
Patch for landing (9.39 KB, patch)
2021-06-16 15:15 PDT, Jonathan Bedard
no flags
Radar WebKit Bug Importer
Comment 1 2021-05-17 14:34:26 PDT
Jonathan Bedard
Comment 2 2021-05-17 14:37:37 PDT
Jonathan Bedard
Comment 3 2021-05-17 16:49:11 PDT
Jonathan Bedard
Comment 4 2021-05-17 16:57:37 PDT
Jonathan Bedard
Comment 5 2021-05-19 12:14:57 PDT
Jonathan Bedard
Comment 6 2021-06-08 13:27:34 PDT
Dean Johnson
Comment 7 2021-06-08 13:36:03 PDT
LGTM; unofficial r+.
Jonathan Bedard
Comment 8 2021-06-16 11:09:18 PDT
Stephanie Lewis
Comment 9 2021-06-16 13:49:26 PDT
Comment on attachment 431568 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431568&action=review > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:532 > + if commit.hash.startswith(end) or end == branch: is it ever passible that the first commit will be in the middle of the range? This code would treat it as out of range
Jonathan Bedard
Comment 10 2021-06-16 14:23:52 PDT
Comment on attachment 431568 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=431568&action=review >> Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:532 >> + if commit.hash.startswith(end) or end == branch: > > is it ever passible that the first commit will be in the middle of the range? This code would treat it as out of range Not if tests are well constructed. This change is entirely in unit testing code, so if begin is older than end, this function shouldn't return anything.
Jonathan Bedard
Comment 11 2021-06-16 15:15:55 PDT
Created attachment 431612 [details] Patch for landing
EWS
Comment 12 2021-06-16 15:41:43 PDT
Committed r278963 (238890@main): <https://commits.webkit.org/238890@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431612 [details].
Note You need to log in before you can comment on or make changes to this bug.