hgext/sparse.py
changeset 49354 216f273b6b30
parent 48875 6000f5b25c9b
child 49355 0540c1628fd4
--- a/hgext/sparse.py	Fri Jun 10 19:54:08 2022 +0200
+++ b/hgext/sparse.py	Wed Jun 08 09:31:01 2022 +0200
@@ -397,6 +397,9 @@
     if count > 1:
         raise error.Abort(_(b"too many flags specified"))
 
+    # enable sparse on repo even if the requirements is missing.
+    repo._has_sparse = True
+
     if count == 0:
         if repo.vfs.exists(b'sparse'):
             ui.status(repo.vfs.read(b"sparse") + b"\n")
@@ -452,3 +455,5 @@
             )
         finally:
             wlock.release()
+
+    del repo._has_sparse