Mercurial > public > mercurial-scm > hg
diff mercurial/exchangev2.py @ 46626:ee91966aec0f
requirements: add constant for revlog v1 requirement
Since this series is adding a new requirement, we might as well clean up while
we're here.
Differential Revision: https://phab.mercurial-scm.org/D10105
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 03 Mar 2021 14:00:45 +0100 |
parents | 7a93b7b3dc2d |
children | a41565bef69f |
line wrap: on
line diff
--- a/mercurial/exchangev2.py Thu Feb 18 15:07:45 2021 +0100 +++ b/mercurial/exchangev2.py Wed Mar 03 14:00:45 2021 +0100 @@ -22,6 +22,7 @@ narrowspec, phases, pycompat, + requirements as requirementsmod, setdiscovery, ) from .interfaces import repository @@ -183,7 +184,7 @@ # TODO This is super hacky. There needs to be a storage API for this. We # also need to check for compatibility with the remote. - if b'revlogv1' not in repo.requirements: + if requirementsmod.REVLOGV1_REQUIREMENT not in repo.requirements: return False return True