diff mercurial/repair.py @ 46677:b4c2a2af25e2

requirements: also add a fncache constant Continue the cleanup to the remaining requirements Differential Revision: https://phab.mercurial-scm.org/D10109
author Rapha?l Gom?s <rgomes@octobus.net>
date Wed, 03 Mar 2021 12:37:13 +0100
parents cd9154343160
children d4ba4d51f85f
line wrap: on
line diff
--- a/mercurial/repair.py	Wed Mar 03 12:35:29 2021 +0100
+++ b/mercurial/repair.py	Wed Mar 03 12:37:13 2021 +0100
@@ -443,7 +443,7 @@
     """
     repo = repo.unfiltered()
 
-    if b'fncache' not in repo.requirements:
+    if requirements.FNCACHE_REQUIREMENT not in repo.requirements:
         ui.warn(
             _(
                 b'(not rebuilding fncache because repository does not '