HomePhabricator

util: eliminate the possibility of returning None from `versiontuple()`

Authored by mharbison72.

Description

util: eliminate the possibility of returning None from versiontuple()

This fixes the following error flagged by pytype:

File "/mnt/c/Users/Matt/hg/mercurial/extensions.py", line 228, in load: unsupported operand types for > [unsupported-operands]
  Primitive types 'Optional[tuple]' and 'curver: Optional[tuple]' are not comparable.

Differential Revision: https://phab.mercurial-scm.org/D11473