hgext3rd/__init__.py
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 22 Dec 2016 19:35:30 +0530
changeset 30674 64a75655b988
parent 28541 4b81487a01d4
child 43076 2372284d9457
permissions -rw-r--r--
shelve: choose a legal shelve name when no name is passed (issue5112) Currently if our branch name contains '\' or starts with '.', shelve chooses an illegal shelve name. This behaviour is not good as it itself is choosing something which it won't accept further. We can raise errors if user passes a name which is illegal. After this patch, if '\' is contained in branch name or bookmark name, it will be replaced by '_' while choosing a shelve name and if they starts with '.', the first '.' is replaced by '_'.

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