fileset: use absolute_import

This commit is contained in:
Gregory Szorc 2015-08-08 18:34:37 -07:00
parent 5f5e77fde2
commit bf31c39d5d
2 changed files with 11 additions and 6 deletions

View File

@ -5,9 +5,17 @@
# 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
import re
import parser, error, util, merge
from i18n import _
from .i18n import _
from . import (
error,
merge,
parser,
util,
)
elements = {
# token-type: binding-strength, primary, prefix, infix, suffix
@ -410,7 +418,7 @@ def subrepo(mctx, x):
# i18n: "subrepo" is a keyword
pat = getstring(x, _("subrepo requires a pattern or no arguments"))
import match as matchmod # avoid circular import issues
from . import match as matchmod # avoid circular import issues
fast = not matchmod.patkind(pat)
if fast:
def m(s):

View File

@ -112,9 +112,6 @@ hidden by deduplication algorithm in the cycle detector, so fixing
these may expose other cycles.
$ hg locate 'mercurial/**.py' 'hgext/**.py' | sed 's-\\-/-g' | python "$import_checker" -
mercurial/fileset.py mixed imports
stdlib: parser
relative: error, merge, util
mercurial/revset.py mixed imports
stdlib: parser
relative: error, hbisect, phases, util