Mercurial > public > mercurial-scm > hg-stable
diff mercurial/streamclone.py @ 46665: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 | a03c177a4679 |
children | 6085b7f1536d |
line wrap: on
line diff
--- a/mercurial/streamclone.py Thu Feb 18 15:07:45 2021 +0100 +++ b/mercurial/streamclone.py Wed Mar 03 14:00:45 2021 +0100 @@ -20,6 +20,7 @@ narrowspec, phases, pycompat, + requirements as requirementsmod, scmutil, store, util, @@ -83,7 +84,7 @@ # is advertised and contains a comma-delimited list of requirements. requirements = set() if remote.capable(b'stream'): - requirements.add(b'revlogv1') + requirements.add(requirementsmod.REVLOGV1_REQUIREMENT) else: streamreqs = remote.capable(b'streamreqs') # This is weird and shouldn't happen with modern servers.