changeset 39770:7aa440222323

localrepo: enable ellipsis flag on revlogs when repo is narrow If the narrow requirement is present, revlogs created for that repository will have the ellipsis flag enabled. This is the same behavior that the narrow extension exhibits. Except the ellipsis flag won't be enabled on repos/revlogs that don't have the narrow requirement. Differential Revision: https://phab.mercurial-scm.org/D4648
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 13 Sep 2018 15:57:18 -0700
parents ba0e0c6b7b61
children a063786c89fb
files mercurial/localrepo.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Sep 13 15:52:42 2018 -0700
+++ b/mercurial/localrepo.py	Thu Sep 13 15:57:18 2018 -0700
@@ -727,6 +727,9 @@
         if r.startswith(b'exp-compression-'):
             options[b'compengine'] = r[len(b'exp-compression-'):]
 
+    if repository.NARROW_REQUIREMENT in requirements:
+        options[b'enableellipsis'] = True
+
     return options
 
 def makemain(**kwargs):