hgext3rd/__init__.py
author Martin von Zweigbergk <martinvonz@google.com>
Sun, 09 Jul 2017 22:53:02 -0700
changeset 33357 a21819f439fe
parent 28541 4b81487a01d4
child 43076 2372284d9457
permissions -rw-r--r--
match: remove unnecessary '^' from regexes The regexes are passed to re.match(), which matches against the beginning of the input, so the '^' doesn't do anything. Note that unrooted patterns, such as globs and regexes from .hgignore are instead achieved by adding '.*' to the expression given by the user. (That's unless the user's expression started with '^', in which case the '.*' is not added, perhaps to keep the regex cleaner?)

# name space package to host third party extensions
from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)