cleanup: use mergestate.unresolvedcount() instead of bool(list(unresolved()))
This avoids some pointless copying.
Differential Revision: https://phab.mercurial-scm.org/D8566
from __future__ import absolute_importimport pkgutil__path__ = pkgutil.extend_path(__path__, __name__)