mercurial/__init__.py
author Yuya Nishihara <yuya@tcha.org>
Fri, 11 Sep 2020 15:08:58 +0900
changeset 45482 a03fde1077ce
parent 43106 d783f945a701
child 48966 6000f5b25c9b
permissions -rw-r--r--
log: reorganize if-else and for loop in logcmdutil._makematcher() The test conditions are branchy depending on --follow and --rev options, so it should be better to switch first by --follow --rev. Note that revs is not empty so "if follow and startctxs" can be replaced with "if follow and opts.get(b'rev')".

# __init__.py - Startup and module loading logic for Mercurial.
#
# Copyright 2015 Gregory Szorc <gregory.szorc@gmail.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.

from __future__ import absolute_import

# Allow 'from mercurial import demandimport' to keep working.
import hgdemandimport

demandimport = hgdemandimport