Mercurial > hg
comparison mercurial/streamclone.py @ 42813:268662aac075
interfaces: create a new folder for interfaces and move repository.py in it
I was trying to understand current interfaces and write new ones and I realized
we need to improve how current interfaces are organised. This creates a
dedicated folder for defining interfaces and move `repository.py` which defines
all the current interfaces inside it.
Differential Revision: https://phab.mercurial-scm.org/D6741
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sun, 18 Aug 2019 00:45:33 +0300 |
parents | 328ca3b9e545 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
42807:383fdfa6bba9 | 42813:268662aac075 |
---|---|
10 import contextlib | 10 import contextlib |
11 import os | 11 import os |
12 import struct | 12 import struct |
13 | 13 |
14 from .i18n import _ | 14 from .i18n import _ |
15 from .interfaces import ( | |
16 repository, | |
17 ) | |
15 from . import ( | 18 from . import ( |
16 cacheutil, | 19 cacheutil, |
17 error, | 20 error, |
18 narrowspec, | 21 narrowspec, |
19 phases, | 22 phases, |
20 pycompat, | 23 pycompat, |
21 repository, | |
22 store, | 24 store, |
23 util, | 25 util, |
24 ) | 26 ) |
25 | 27 |
26 def canperformstreamclone(pullop, bundle2=False): | 28 def canperformstreamclone(pullop, bundle2=False): |