This is an archive of the discontinued Mercurial Phabricator instance.

commands: check for modheads being None
ClosedPublic

Authored by indygreg on Jan 25 2019, 7:01 PM.

Details

Summary

Python 2 allows the > operator to be used with a None and an
int. Python 3 does not. So we need to ensure the value isn't None
before comparing with >.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Jan 25 2019, 7:01 PM
This revision was automatically updated to reflect the committed changes.