mercurial/localrepo.py
changeset 45355 a1f51c7dce0f
parent 45354 c4fe2262435e
child 45356 f025b97f3758
--- a/mercurial/localrepo.py	Fri Aug 07 16:02:13 2020 +0530
+++ b/mercurial/localrepo.py	Sat Aug 08 10:06:32 2020 -0700
@@ -816,7 +816,7 @@
 
     ``error.RepoError`` should be raised on failure.
     """
-    if b'exp-sparse' in requirements and not sparse.enabled:
+    if repository.SPARSE_REQUIREMENT in requirements and not sparse.enabled:
         raise error.RepoError(
             _(
                 b'repository is using sparse feature but '
@@ -1067,7 +1067,7 @@
         b'shared',
         b'relshared',
         b'dotencode',
-        b'exp-sparse',
+        repository.SPARSE_REQUIREMENT,
         b'internal-phase',
     }