Show More
@@ -5,13 +5,37 b'' | |||||
5 | # This software may be used and distributed according to the terms of the |
|
5 | # This software may be used and distributed according to the terms of the | |
6 | # GNU General Public License version 2 or any later version. |
|
6 | # GNU General Public License version 2 or any later version. | |
7 |
|
7 | |||
8 | from i18n import _ |
|
8 | from __future__ import absolute_import | |
9 | import os, sys, atexit, signal, pdb, socket, errno, shlex, time, traceback, re |
|
9 | ||
|
10 | import atexit | |||
10 | import difflib |
|
11 | import difflib | |
11 | import util, commands, hg, fancyopts, extensions, hook, error |
|
12 | import errno | |
12 | import cmdutil, encoding |
|
13 | import os | |
13 | import ui as uimod |
|
14 | import pdb | |
14 | import demandimport |
|
15 | import re | |
|
16 | import shlex | |||
|
17 | import signal | |||
|
18 | import socket | |||
|
19 | import sys | |||
|
20 | import time | |||
|
21 | import traceback | |||
|
22 | ||||
|
23 | ||||
|
24 | from .i18n import _ | |||
|
25 | ||||
|
26 | from . import ( | |||
|
27 | cmdutil, | |||
|
28 | commands, | |||
|
29 | demandimport, | |||
|
30 | encoding, | |||
|
31 | error, | |||
|
32 | extensions, | |||
|
33 | fancyopts, | |||
|
34 | hg, | |||
|
35 | hook, | |||
|
36 | ui as uimod, | |||
|
37 | util, | |||
|
38 | ) | |||
15 |
|
39 | |||
16 | class request(object): |
|
40 | class request(object): | |
17 | def __init__(self, args, ui=None, repo=None, fin=None, fout=None, |
|
41 | def __init__(self, args, ui=None, repo=None, fin=None, fout=None, | |
@@ -909,7 +933,7 b' def lsprofile(ui, func, fp):' | |||||
909 | format = 'text' |
|
933 | format = 'text' | |
910 |
|
934 | |||
911 | try: |
|
935 | try: | |
912 |
from |
|
936 | from . import lsprof | |
913 | except ImportError: |
|
937 | except ImportError: | |
914 | raise util.Abort(_( |
|
938 | raise util.Abort(_( | |
915 | 'lsprof not available - install from ' |
|
939 | 'lsprof not available - install from ' | |
@@ -922,7 +946,7 b' def lsprofile(ui, func, fp):' | |||||
922 | p.disable() |
|
946 | p.disable() | |
923 |
|
947 | |||
924 | if format == 'kcachegrind': |
|
948 | if format == 'kcachegrind': | |
925 | import lsprofcalltree |
|
949 | from . import lsprofcalltree | |
926 | calltree = lsprofcalltree.KCacheGrind(p) |
|
950 | calltree = lsprofcalltree.KCacheGrind(p) | |
927 | calltree.output(fp) |
|
951 | calltree.output(fp) | |
928 | else: |
|
952 | else: |
@@ -112,9 +112,6 b' hidden by deduplication algorithm in the' | |||||
112 | these may expose other cycles. |
|
112 | these may expose other cycles. | |
113 |
|
113 | |||
114 | $ hg locate 'mercurial/**.py' 'hgext/**.py' | sed 's-\\-/-g' | python "$import_checker" - |
|
114 | $ hg locate 'mercurial/**.py' 'hgext/**.py' | sed 's-\\-/-g' | python "$import_checker" - | |
115 | mercurial/dispatch.py mixed imports |
|
|||
116 | stdlib: commands |
|
|||
117 | relative: error, extensions, fancyopts, hg, hook, util |
|
|||
118 | mercurial/fileset.py mixed imports |
|
115 | mercurial/fileset.py mixed imports | |
119 | stdlib: parser |
|
116 | stdlib: parser | |
120 | relative: error, merge, util |
|
117 | relative: error, merge, util |
General Comments 0
You need to be logged in to leave comments.
Login now