Page MenuHomePhabricator

perf: don't depend on pycompat for older Mercurial versions
ClosedPublic

Authored by martinvonz on Aug 19 2019, 1:43 PM.

Details

Summary

We already define local _sysstr() and _xrange() for compatibility, so
we should use those.

Also create a similar local _bytestr() corresponding to
pycompat.bytestr().

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.