view hgext/__init__.py @ 30381:caba61934721

shelve: move commitfunc creation to a separate function Special commitfuncs are created as closures at least twice in shelve's code and one time special commitfunc is used within another closure. They all serve very specific purposes like temporarily tweak some configuration or enable editor, etc. This is not immediately important to someone reading shelve code, so I think moving this logic to a separate function is a good idea.
author Kostia Balytskyi <ikostia@fb.com>
date Thu, 10 Nov 2016 03:26:31 -0800
parents 155e3308289c
children 2372284d9457
line wrap: on
line source

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