Mercurial > hg
comparison mercurial/changegroup.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 | 27d6956d386b |
children | d7304434390f |
comparison
equal
deleted
inserted
replaced
42807:383fdfa6bba9 | 42813:268662aac075 |
---|---|
23 error, | 23 error, |
24 match as matchmod, | 24 match as matchmod, |
25 mdiff, | 25 mdiff, |
26 phases, | 26 phases, |
27 pycompat, | 27 pycompat, |
28 util, | |
29 ) | |
30 | |
31 from .interfaces import ( | |
28 repository, | 32 repository, |
29 util, | |
30 ) | 33 ) |
31 | 34 |
32 _CHANGEGROUPV1_DELTA_HEADER = struct.Struct("20s20s20s20s") | 35 _CHANGEGROUPV1_DELTA_HEADER = struct.Struct("20s20s20s20s") |
33 _CHANGEGROUPV2_DELTA_HEADER = struct.Struct("20s20s20s20s20s") | 36 _CHANGEGROUPV2_DELTA_HEADER = struct.Struct("20s20s20s20s20s") |
34 _CHANGEGROUPV3_DELTA_HEADER = struct.Struct(">20s20s20s20s20sH") | 37 _CHANGEGROUPV3_DELTA_HEADER = struct.Struct(">20s20s20s20s20sH") |