diff mercurial/repository.py @ 39851:1f7b3b980af8

lfs: add repository feature denoting the use of LFS Whether LFS is enabled seems like a useful feature to expose. This will also facilitate some future work around LFS feature compatibility. Differential Revision: https://phab.mercurial-scm.org/D4710
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 19 Sep 2018 13:48:59 -0700
parents d89d5bc06eaa
children 9534fe1e5d28
line wrap: on
line diff
--- a/mercurial/repository.py	Wed Sep 19 14:36:57 2018 -0700
+++ b/mercurial/repository.py	Wed Sep 19 13:48:59 2018 -0700
@@ -25,6 +25,8 @@
 REPO_FEATURE_REVLOG_FILE_STORAGE = b'revlogfilestorage'
 # The storage part of the repository is shared from an external source.
 REPO_FEATURE_SHARED_STORAGE = b'sharedstore'
+# LFS supported for backing file storage.
+REPO_FEATURE_LFS = b'lfs'
 
 class ipeerconnection(interfaceutil.Interface):
     """Represents a "connection" to a repository.