Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlecaches.py @ 46666:f4c325bf80fc
requirements: also add a generaldelta constant
Continue the cleanup to the remaining requirements
Differential Revision: https://phab.mercurial-scm.org/D10106
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 03 Mar 2021 12:30:23 +0100 |
parents | 80f32ec8653a |
children | dc3800569157 |
line wrap: on
line diff
--- a/mercurial/bundlecaches.py Wed Mar 03 14:00:45 2021 +0100 +++ b/mercurial/bundlecaches.py Wed Mar 03 12:30:23 2021 +0100 @@ -9,6 +9,7 @@ from . import ( error, + requirements as requirementsmod, sslutil, util, ) @@ -164,7 +165,7 @@ compression = spec version = b'v1' # Generaldelta repos require v2. - if b'generaldelta' in repo.requirements: + if requirementsmod.GENERALDELTA_REQUIREMENT in repo.requirements: version = b'v2' # Modern compression engines require v2. if compression not in _bundlespecv1compengines: