hgext/__init__.py
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 21 Jun 2018 08:22:11 -0700
changeset 38432 05b7dd11918e
parent 28450 155e3308289c
child 43076 2372284d9457
permissions -rw-r--r--
cleanupnodes: preserve phase of parents of new nodes As Yuya noted in the review of D3818, passing in targetphase=phases.draft would result in advancing the phase boundary of a secret-phase parent. We never pass targetphase=phases.draft so far, but it's a bug waiting to happen. I tried to refactor it so max(parentphase, X) happened in one place, but I couldn't come up with good variables names and I ended up with a "newphase = max(newphase, parentphase)" line, which made the whole block not look any better to me. Differential Revision: https://phab.mercurial-scm.org/D3824

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