Show More
@@ -75,9 +75,9 b' from mercurial import (' | |||||
75 | ) |
|
75 | ) | |
76 | from mercurial.interfaces import ( |
|
76 | from mercurial.interfaces import ( | |
77 | repository, |
|
77 | repository, | |
|
78 | util as interfaceutil, | |||
78 | ) |
|
79 | ) | |
79 | from mercurial.utils import ( |
|
80 | from mercurial.utils import ( | |
80 | interfaceutil, |
|
|||
81 | storageutil, |
|
81 | storageutil, | |
82 | ) |
|
82 | ) | |
83 |
|
83 |
@@ -18,9 +18,9 b' from . import (' | |||||
18 | ) |
|
18 | ) | |
19 | from .interfaces import ( |
|
19 | from .interfaces import ( | |
20 | repository, |
|
20 | repository, | |
|
21 | util as interfaceutil, | |||
21 | ) |
|
22 | ) | |
22 | from .utils import ( |
|
23 | from .utils import ( | |
23 | interfaceutil, |
|
|||
24 | storageutil, |
|
24 | storageutil, | |
25 | ) |
|
25 | ) | |
26 |
|
26 |
@@ -16,9 +16,6 b' import struct' | |||||
16 | import weakref |
|
16 | import weakref | |
17 |
|
17 | |||
18 | from .i18n import _ |
|
18 | from .i18n import _ | |
19 | from .interfaces import ( |
|
|||
20 | repository, |
|
|||
21 | ) |
|
|||
22 | from . import ( |
|
19 | from . import ( | |
23 | bundle2, |
|
20 | bundle2, | |
24 | error, |
|
21 | error, | |
@@ -33,9 +30,12 b' from . import (' | |||||
33 | wireprotov2peer, |
|
30 | wireprotov2peer, | |
34 | wireprotov2server, |
|
31 | wireprotov2server, | |
35 | ) |
|
32 | ) | |
|
33 | from .interfaces import ( | |||
|
34 | repository, | |||
|
35 | util as interfaceutil, | |||
|
36 | ) | |||
36 | from .utils import ( |
|
37 | from .utils import ( | |
37 | cborutil, |
|
38 | cborutil, | |
38 | interfaceutil, |
|
|||
39 | stringutil, |
|
39 | stringutil, | |
40 | ) |
|
40 | ) | |
41 |
|
41 |
@@ -11,8 +11,8 b' from ..i18n import _' | |||||
11 | from .. import ( |
|
11 | from .. import ( | |
12 | error, |
|
12 | error, | |
13 | ) |
|
13 | ) | |
14 |
from . |
|
14 | from . import ( | |
15 | interfaceutil, |
|
15 | util as interfaceutil, | |
16 | ) |
|
16 | ) | |
17 |
|
17 | |||
18 | # When narrowing is finalized and no longer subject to format changes, |
|
18 | # When narrowing is finalized and no longer subject to format changes, |
@@ -1,4 +1,4 b'' | |||||
1 |
# |
|
1 | # util.py - Utilities for declaring interfaces. | |
2 | # |
|
2 | # | |
3 | # Copyright 2018 Gregory Szorc <gregory.szorc@gmail.com> |
|
3 | # Copyright 2018 Gregory Szorc <gregory.szorc@gmail.com> | |
4 | # |
|
4 | # |
@@ -68,10 +68,10 b' from . import (' | |||||
68 |
|
68 | |||
69 | from .interfaces import ( |
|
69 | from .interfaces import ( | |
70 | repository, |
|
70 | repository, | |
|
71 | util as interfaceutil, | |||
71 | ) |
|
72 | ) | |
72 |
|
73 | |||
73 | from .utils import ( |
|
74 | from .utils import ( | |
74 | interfaceutil, |
|
|||
75 | procutil, |
|
75 | procutil, | |
76 | stringutil, |
|
76 | stringutil, | |
77 | ) |
|
77 | ) |
@@ -29,9 +29,7 b' from . import (' | |||||
29 | ) |
|
29 | ) | |
30 | from .interfaces import ( |
|
30 | from .interfaces import ( | |
31 | repository, |
|
31 | repository, | |
32 | ) |
|
32 | util as interfaceutil, | |
33 | from .utils import ( |
|
|||
34 | interfaceutil, |
|
|||
35 | ) |
|
33 | ) | |
36 |
|
34 | |||
37 | parsers = policy.importmod(r'parsers') |
|
35 | parsers = policy.importmod(r'parsers') |
@@ -70,13 +70,13 b' from . import (' | |||||
70 | ) |
|
70 | ) | |
71 | from .interfaces import ( |
|
71 | from .interfaces import ( | |
72 | repository, |
|
72 | repository, | |
|
73 | util as interfaceutil, | |||
73 | ) |
|
74 | ) | |
74 | from .revlogutils import ( |
|
75 | from .revlogutils import ( | |
75 | deltas as deltautil, |
|
76 | deltas as deltautil, | |
76 | flagutil, |
|
77 | flagutil, | |
77 | ) |
|
78 | ) | |
78 | from .utils import ( |
|
79 | from .utils import ( | |
79 | interfaceutil, |
|
|||
80 | storageutil, |
|
80 | storageutil, | |
81 | stringutil, |
|
81 | stringutil, | |
82 | ) |
|
82 | ) |
@@ -21,10 +21,12 b' from . import (' | |||||
21 | wireprotov1server, |
|
21 | wireprotov1server, | |
22 | wireprotov2server, |
|
22 | wireprotov2server, | |
23 | ) |
|
23 | ) | |
|
24 | from .interfaces import ( | |||
|
25 | util as interfaceutil, | |||
|
26 | ) | |||
24 | from .utils import ( |
|
27 | from .utils import ( | |
25 | cborutil, |
|
28 | cborutil, | |
26 | compression, |
|
29 | compression, | |
27 | interfaceutil, |
|
|||
28 | ) |
|
30 | ) | |
29 |
|
31 | |||
30 | stringio = util.stringio |
|
32 | stringio = util.stringio |
@@ -17,9 +17,11 b' from . import (' | |||||
17 | error, |
|
17 | error, | |
18 | util, |
|
18 | util, | |
19 | ) |
|
19 | ) | |
|
20 | from .interfaces import ( | |||
|
21 | util as interfaceutil, | |||
|
22 | ) | |||
20 | from .utils import ( |
|
23 | from .utils import ( | |
21 | compression, |
|
24 | compression, | |
22 | interfaceutil, |
|
|||
23 | ) |
|
25 | ) | |
24 |
|
26 | |||
25 | # Names of the SSH protocol implementations. |
|
27 | # Names of the SSH protocol implementations. |
@@ -27,9 +27,7 b' from . import (' | |||||
27 | ) |
|
27 | ) | |
28 | from .interfaces import ( |
|
28 | from .interfaces import ( | |
29 | repository, |
|
29 | repository, | |
30 | ) |
|
30 | util as interfaceutil, | |
31 | from .utils import ( |
|
|||
32 | interfaceutil, |
|
|||
33 | ) |
|
31 | ) | |
34 |
|
32 | |||
35 | urlreq = util.urlreq |
|
33 | urlreq = util.urlreq |
@@ -28,9 +28,11 b' from . import (' | |||||
28 | wireprotoframing, |
|
28 | wireprotoframing, | |
29 | wireprototypes, |
|
29 | wireprototypes, | |
30 | ) |
|
30 | ) | |
|
31 | from .interfaces import ( | |||
|
32 | util as interfaceutil, | |||
|
33 | ) | |||
31 | from .utils import ( |
|
34 | from .utils import ( | |
32 | cborutil, |
|
35 | cborutil, | |
33 | interfaceutil, |
|
|||
34 | stringutil, |
|
36 | stringutil, | |
35 | ) |
|
37 | ) | |
36 |
|
38 |
@@ -38,10 +38,10 b' from mercurial import (' | |||||
38 | ) |
|
38 | ) | |
39 | from mercurial.interfaces import ( |
|
39 | from mercurial.interfaces import ( | |
40 | repository, |
|
40 | repository, | |
|
41 | util as interfaceutil, | |||
41 | ) |
|
42 | ) | |
42 | from mercurial.utils import ( |
|
43 | from mercurial.utils import ( | |
43 | cborutil, |
|
44 | cborutil, | |
44 | interfaceutil, |
|
|||
45 | storageutil, |
|
45 | storageutil, | |
46 | ) |
|
46 | ) | |
47 | from mercurial.revlogutils import ( |
|
47 | from mercurial.revlogutils import ( |
@@ -17,9 +17,9 b' from mercurial import (' | |||||
17 | ) |
|
17 | ) | |
18 | from mercurial.interfaces import ( |
|
18 | from mercurial.interfaces import ( | |
19 | repository, |
|
19 | repository, | |
|
20 | util as interfaceutil, | |||
20 | ) |
|
21 | ) | |
21 | from mercurial.utils import ( |
|
22 | from mercurial.utils import ( | |
22 | interfaceutil, |
|
|||
23 | stringutil, |
|
23 | stringutil, | |
24 | ) |
|
24 | ) | |
25 |
|
25 |
General Comments 0
You need to be logged in to leave comments.
Login now