( )⚙ D10318 revlog: fix error about unknown compression format in py3

This is an archive of the discontinued Mercurial Phabricator instance.

revlog: fix error about unknown compression format in py3
ClosedPublic

Authored by valentin.gatienbaron on Apr 6 2021, 1:53 PM.

Details

Summary

In py2, the error is something like:
abort: unknown compression type 'x'!

In py3, we get the following unhelpful message:
abort: unknown compression type <memory at 0x7f4650b5cdc8>!

Switch to something like:
abort: unknown compression type 78!

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

pulkit accepted this revision.Apr 8 2021, 3:02 AM
This revision is now accepted and ready to land.Apr 8 2021, 3:02 AM