hgext/__init__.py
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 04 May 2018 21:58:43 -0700
changeset 37860 a91f31a1e281
parent 28450 155e3308289c
child 43076 2372284d9457
permissions -rw-r--r--
revlog: extract function for getting node from known-to-exist rev Many of the calls to index_node() (which converts a rev to a nodeid) are done with a rev that's know to exist. If the function fails, there's something really wrong and we should just abort. This was done in only one place. This patch starts by extracting that code to a function that we can reuse in later patches. Differential Revision: https://phab.mercurial-scm.org/D3456

from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)