##// END OF EJS Templates
interfaces: create a new folder for interfaces and move repository.py in it...
Pulkit Goyal -
r43078:268662aa default
parent child Browse files
Show More
1 NO CONTENT: new file 100644
@@ -28,6 +28,7 b' allowsymbolimports = ('
28 28 'mercurial.hgweb.common',
29 29 'mercurial.hgweb.request',
30 30 'mercurial.i18n',
31 'mercurial.interfaces',
31 32 'mercurial.node',
32 33 # for revlog to re-export constant to extensions
33 34 'mercurial.revlogutils.constants',
@@ -141,13 +141,16 b' from mercurial import ('
141 141 minifileset,
142 142 node,
143 143 pycompat,
144 repository,
145 144 revlog,
146 145 scmutil,
147 146 templateutil,
148 147 util,
149 148 )
150 149
150 from mercurial.interfaces import (
151 repository,
152 )
153
151 154 from . import (
152 155 blobstore,
153 156 wireprotolfsserver,
@@ -21,7 +21,6 b' from mercurial import ('
21 21 exchange,
22 22 exthelper,
23 23 localrepo,
24 repository,
25 24 revlog,
26 25 scmutil,
27 26 upgrade,
@@ -30,6 +29,10 b' from mercurial import ('
30 29 wireprotov1server,
31 30 )
32 31
32 from mercurial.interfaces import (
33 repository,
34 )
35
33 36 from mercurial.utils import (
34 37 storageutil,
35 38 stringutil,
@@ -17,6 +17,9 b" testedwith = 'ships-with-hg-core'"
17 17 from mercurial import (
18 18 localrepo,
19 19 registrar,
20 )
21
22 from mercurial.interfaces import (
20 23 repository,
21 24 )
22 25
@@ -23,10 +23,12 b' from mercurial import ('
23 23 localrepo,
24 24 narrowspec,
25 25 repair,
26 repository,
27 26 util,
28 27 wireprototypes,
29 28 )
29 from mercurial.interfaces import (
30 repository,
31 )
30 32 from mercurial.utils import (
31 33 stringutil,
32 34 )
@@ -25,12 +25,14 b' from mercurial import ('
25 25 pycompat,
26 26 registrar,
27 27 repair,
28 repository,
29 28 repoview,
30 29 sparse,
31 30 util,
32 31 wireprototypes,
33 32 )
33 from mercurial.interfaces import (
34 repository,
35 )
34 36
35 37 table = {}
36 38 command = registrar.command(table)
@@ -70,10 +70,12 b' from mercurial import ('
70 70 mdiff,
71 71 pycompat,
72 72 registrar,
73 repository,
74 73 util,
75 74 verify,
76 75 )
76 from mercurial.interfaces import (
77 repository,
78 )
77 79 from mercurial.utils import (
78 80 interfaceutil,
79 81 storageutil,
@@ -25,8 +25,11 b' from . import ('
25 25 mdiff,
26 26 phases,
27 27 pycompat,
28 util,
29 )
30
31 from .interfaces import (
28 32 repository,
29 util,
30 33 )
31 34
32 35 _CHANGEGROUPV1_DELTA_HEADER = struct.Struct("20s20s20s20s")
@@ -34,7 +34,6 b' from . import ('
34 34 phases,
35 35 pushkey,
36 36 pycompat,
37 repository,
38 37 scmutil,
39 38 sslutil,
40 39 streamclone,
@@ -42,6 +41,9 b' from . import ('
42 41 util,
43 42 wireprototypes,
44 43 )
44 from .interfaces import (
45 repository,
46 )
45 47 from .utils import (
46 48 stringutil,
47 49 )
@@ -22,8 +22,10 b' from . import ('
22 22 narrowspec,
23 23 phases,
24 24 pycompat,
25 setdiscovery,
26 )
27 from .interfaces import (
25 28 repository,
26 setdiscovery,
27 29 )
28 30
29 31 def pull(pullop):
@@ -14,8 +14,10 b' from .node import ('
14 14 )
15 15 from . import (
16 16 error,
17 revlog,
18 )
19 from .interfaces import (
17 20 repository,
18 revlog,
19 21 )
20 22 from .utils import (
21 23 interfaceutil,
@@ -39,7 +39,6 b' from . import ('
39 39 node,
40 40 phases,
41 41 pycompat,
42 repository as repositorymod,
43 42 scmutil,
44 43 sshpeer,
45 44 statichttprepo,
@@ -51,6 +50,10 b' from . import ('
51 50 vfs as vfsmod,
52 51 )
53 52
53 from .interfaces import (
54 repository as repositorymod,
55 )
56
54 57 release = lock.release
55 58
56 59 # shared features
@@ -16,12 +16,14 b' import struct'
16 16 import weakref
17 17
18 18 from .i18n import _
19 from .interfaces import (
20 repository,
21 )
19 22 from . import (
20 23 bundle2,
21 24 error,
22 25 httpconnection,
23 26 pycompat,
24 repository,
25 27 statichttprepo,
26 28 url as urlmod,
27 29 util,
@@ -7,11 +7,11 b''
7 7
8 8 from __future__ import absolute_import
9 9
10 from .i18n import _
11 from . import (
10 from ..i18n import _
11 from .. import (
12 12 error,
13 13 )
14 from .utils import (
14 from ..utils import (
15 15 interfaceutil,
16 16 )
17 17
@@ -52,7 +52,6 b' from . import ('
52 52 phases,
53 53 pushkey,
54 54 pycompat,
55 repository,
56 55 repoview,
57 56 revset,
58 57 revsetlang,
@@ -66,6 +65,11 b' from . import ('
66 65 util,
67 66 vfs as vfsmod,
68 67 )
68
69 from .interfaces import (
70 repository,
71 )
72
69 73 from .utils import (
70 74 interfaceutil,
71 75 procutil,
@@ -24,10 +24,12 b' from . import ('
24 24 mdiff,
25 25 policy,
26 26 pycompat,
27 repository,
28 27 revlog,
29 28 util,
30 29 )
30 from .interfaces import (
31 repository,
32 )
31 33 from .utils import (
32 34 interfaceutil,
33 35 )
@@ -8,11 +8,13 b''
8 8 from __future__ import absolute_import
9 9
10 10 from .i18n import _
11 from .interfaces import (
12 repository,
13 )
11 14 from . import (
12 15 error,
13 16 match as matchmod,
14 17 merge,
15 repository,
16 18 scmutil,
17 19 sparse,
18 20 util,
@@ -65,10 +65,12 b' from . import ('
65 65 mdiff,
66 66 policy,
67 67 pycompat,
68 repository,
69 68 templatefilters,
70 69 util,
71 70 )
71 from .interfaces import (
72 repository,
73 )
72 74 from .revlogutils import (
73 75 deltas as deltautil,
74 76 flagutil,
@@ -9,7 +9,7 b''
9 9
10 10 from __future__ import absolute_import
11 11
12 from .. import (
12 from ..interfaces import (
13 13 repository,
14 14 )
15 15
@@ -12,13 +12,15 b' import os'
12 12 import struct
13 13
14 14 from .i18n import _
15 from .interfaces import (
16 repository,
17 )
15 18 from . import (
16 19 cacheutil,
17 20 error,
18 21 narrowspec,
19 22 phases,
20 23 pycompat,
21 repository,
22 24 store,
23 25 util,
24 26 )
@@ -17,6 +17,8 b' from ..node import ('
17 17 from .. import (
18 18 error,
19 19 mdiff,
20 )
21 from ..interfaces import (
20 22 repository,
21 23 )
22 24 from ..utils import (
@@ -22,8 +22,8 b' from .. import ('
22 22 error,
23 23 mdiff,
24 24 pycompat,
25 repository,
26 25 )
26 from ..interfaces import repository
27 27
28 28 _nullhash = hashlib.sha1(nullid)
29 29
@@ -22,10 +22,12 b' from . import ('
22 22 error,
23 23 pushkey as pushkeymod,
24 24 pycompat,
25 repository,
26 25 util,
27 26 wireprototypes,
28 27 )
28 from .interfaces import (
29 repository,
30 )
29 31 from .utils import (
30 32 interfaceutil,
31 33 )
@@ -1067,6 +1067,7 b" packages = ['mercurial',"
1067 1067 'mercurial.cext',
1068 1068 'mercurial.cffi',
1069 1069 'mercurial.hgweb',
1070 'mercurial.interfaces',
1070 1071 'mercurial.pure',
1071 1072 'mercurial.thirdparty',
1072 1073 'mercurial.thirdparty.attr',
@@ -6,7 +6,8 b' then'
6 6 fi
7 7
8 8 cat > notcapable-$CAP.py << EOF
9 from mercurial import extensions, localrepo, repository
9 from mercurial import extensions, localrepo
10 from mercurial.interfaces import repository
10 11 def extsetup(ui):
11 12 extensions.wrapfunction(repository.peer, 'capable', wrapcapable)
12 13 extensions.wrapfunction(localrepo.localrepository, 'peer', wrappeer)
@@ -13,6 +13,8 b' from mercurial import ('
13 13 error,
14 14 extensions,
15 15 localrepo,
16 )
17 from mercurial.interfaces import (
16 18 repository,
17 19 )
18 20
@@ -32,11 +32,13 b' from mercurial import ('
32 32 localrepo,
33 33 mdiff,
34 34 pycompat,
35 repository,
36 35 revlog,
37 36 store,
38 37 verify,
39 38 )
39 from mercurial.interfaces import (
40 repository,
41 )
40 42 from mercurial.utils import (
41 43 cborutil,
42 44 interfaceutil,
@@ -14,6 +14,9 b" if subprocess.call(['python', '%s/hghave"
14 14 'test-repo']):
15 15 sys.exit(80)
16 16
17 from mercurial.interfaces import (
18 repository,
19 )
17 20 from mercurial.thirdparty.zope import (
18 21 interface as zi,
19 22 )
@@ -27,7 +30,6 b' from mercurial import ('
27 30 localrepo,
28 31 manifest,
29 32 pycompat,
30 repository,
31 33 revlog,
32 34 sshpeer,
33 35 statichttprepo,
@@ -10,12 +10,14 b' from __future__ import absolute_import'
10 10 from mercurial import (
11 11 extensions,
12 12 registrar,
13 repository,
14 13 util,
15 14 wireprotoserver,
16 15 wireprototypes,
17 16 wireprotov2server,
18 17 )
18 from mercurial.interfaces import (
19 repository,
20 )
19 21 from mercurial.utils import (
20 22 interfaceutil,
21 23 stringutil,
General Comments 0
You need to be logged in to leave comments. Login now