mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
fileset: use absolute_import
This commit is contained in:
parent
5f5e77fde2
commit
bf31c39d5d
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user