context: add convenience method for returning a memfilectx from a patch
This is mostly a copy of what makememctx does but refactored to make it
behave more like our other convenience methods.
from __future__ import absolute_importimport pkgutil__path__ = pkgutil.extend_path(__path__, __name__)