diff -r fa8d974284f8 -r 216f273b6b30 hgext/sparse.py --- 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