Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 13, 2023 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/6f04016638c8c9134edce3c1016e2bc3 to your computer and use it in GitHub Desktop.
Save Whateverable/6f04016638c8c9134edce3c1016e2bc3 to your computer and use it in GitHub Desktop.
bisectable6
old=2022.12 say Date.today.Int
Bisecting: 599 revisions left to test after this (roughly 9 steps)
[7d41c9603917786c835af0eb1e25e7a4ffa6315d] Implement conflict resolution for importing functions
»»»»» Testing 7d41c9603917786c835af0eb1e25e7a4ffa6315d
»»»»» Script output:
No such method 'Int' for invocant of type 'Date'
in block <unit> at /tmp/6wiaelV3Ew line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 656450e26b681638f055bb6a0001643808c51763
»»»»» Script output:
59988
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing c3e0eb7c18164558361baddf77af83893012be38
»»»»» Script output:
No such method 'Int' for invocant of type 'Date'
in block <unit> at /tmp/6wiaelV3Ew line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 5b20a8c78c000585e3c2e6bb4709f8aa8f7c2fa4
»»»»» Script output:
No such method 'Int' for invocant of type 'Date'
in block <unit> at /tmp/6wiaelV3Ew line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing dc452c57c0b7e5951fee8fa8bed836637dae73ab
»»»»» Script output:
No such method 'Int' for invocant of type 'Date'
in block <unit> at /tmp/6wiaelV3Ew line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 44232e76b828bd7d5cd7d01df4b9ff07350ef939
»»»»» Script output:
No such method 'Int' for invocant of type 'Date'
in block <unit> at /tmp/6wiaelV3Ew line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 01a8faa709ebe2fe40ca3606b5f50b6f524e601a
»»»»» Script output:
No such method 'Int' for invocant of type 'Date'
in block <unit> at /tmp/6wiaelV3Ew line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing be0835f5805c1a37eb020bb454cb6723159ef338
»»»»» Script output:
No such method 'Int' for invocant of type 'Date'
in block <unit> at /tmp/6wiaelV3Ew line 1
»»»»» Script exit code: 1
»»»»» Bisecting by exit code
»»»»» Current exit code is 1, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “old”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 4b264b80b4df605ca21271cbe6f2466a46a69e80
»»»»» Script output:
59988
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
»»»»» -------------------------------------------------------------------------
»»»»» Testing 72856df91b2e1cafb439bcd8bcc7ae46c378d01e
»»»»» Script output:
59988
»»»»» Script exit code: 0
»»»»» Bisecting by exit code
»»»»» Current exit code is 0, exit code on “old” revision is 1
»»»»» Note that on “old” revision exit code is normally 0, you are probably trying to find when something was fixed
»»»»» If exit code is not the same as on “old” revision, this revision will be marked as “new”
»»»»» Therefore, marking this revision as “new”
72856df91b2e1cafb439bcd8bcc7ae46c378d01e is the first new commit
commit 72856df91b2e1cafb439bcd8bcc7ae46c378d01e
Author: Elizabeth Mattijsen <liz@raku.rocks>
Date: Mon Jan 9 13:49:24 2023 +0100
Implement numeric coercers for Date/DateTime
Basically implement PRs #5151 and #5152 as a single revertable commit.
As suggested by Márton Polgár.
This also implements Mu.Int on type objects. This could be considered
wrong, as then maybe other specific numeric coercers should also be
handled in Mu (think: .Rat / .Num / .Complex). This approach was
taken over starting a new proto in Date.
src/core.c/Cool.pm6 | 1 -
src/core.c/Date.pm6 | 36 ++++++++++++------------------------
src/core.c/DateTime.pm6 | 38 ++++----------------------------------
src/core.c/Mu.pm6 | 5 +++++
4 files changed, 21 insertions(+), 59 deletions(-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment