mergestate: extract a base class to be shared by future memmergestate
This extracts a new base class from `mergestate` and leaves all the
vfs-touching code in `mergestate`.
Differential Revision: https://phab.mercurial-scm.org/D9039
from __future__ import absolute_importimport pkgutil__path__ = pkgutil.extend_path(__path__, __name__)