This is an archive of the discontinued Mercurial Phabricator instance.

perf: handle NameError for `pycompat.foo` when pycompat wasn't imported
ClosedPublic

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

Details

Summary

On old Mercurial versions, we won't have a pycompat variable defined,
and then pycompat.foo will raise a NameError.

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.