Mercurial > public > mercurial-scm > hg
comparison mercurial/utils/storageutil.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 | aeb2be20b33b |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
42807:383fdfa6bba9 | 42813:268662aac075 |
---|---|
20 from .. import ( | 20 from .. import ( |
21 dagop, | 21 dagop, |
22 error, | 22 error, |
23 mdiff, | 23 mdiff, |
24 pycompat, | 24 pycompat, |
25 repository, | |
26 ) | 25 ) |
26 from ..interfaces import repository | |
27 | 27 |
28 _nullhash = hashlib.sha1(nullid) | 28 _nullhash = hashlib.sha1(nullid) |
29 | 29 |
30 def hashrevisionsha1(text, p1, p2): | 30 def hashrevisionsha1(text, p1, p2): |
31 """Compute the SHA-1 for revision data and its parents. | 31 """Compute the SHA-1 for revision data and its parents. |