This is an archive of the discontinued Mercurial Phabricator instance.

context: stop catching TypeError when converting hex nodeid to binary
ClosedPublic

Authored by martinvonz on Sep 29 2018, 2:14 AM.

Details

Summary

It has been a programming error to pass a 40-character string that is
not a hex nodeid since 8b86acc7aa64 (context: drop support for looking
up context by ambiguous changeid (API), 2018-04-28), so we can just
let it raise a TypeError.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

martinvonz created this revision.Sep 29 2018, 2:14 AM
This revision was automatically updated to reflect the committed changes.