Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 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 | 3e801ffd7269 |
children | d3e761f9ac0a |
comparison
equal
deleted
inserted
replaced
39769:ba0e0c6b7b61 | 39770:7aa440222323 |
---|---|
724 options[b'maxchainlen'] = maxchainlen | 724 options[b'maxchainlen'] = maxchainlen |
725 | 725 |
726 for r in requirements: | 726 for r in requirements: |
727 if r.startswith(b'exp-compression-'): | 727 if r.startswith(b'exp-compression-'): |
728 options[b'compengine'] = r[len(b'exp-compression-'):] | 728 options[b'compengine'] = r[len(b'exp-compression-'):] |
729 | |
730 if repository.NARROW_REQUIREMENT in requirements: | |
731 options[b'enableellipsis'] = True | |
729 | 732 |
730 return options | 733 return options |
731 | 734 |
732 def makemain(**kwargs): | 735 def makemain(**kwargs): |
733 """Produce a type conforming to ``ilocalrepositorymain``.""" | 736 """Produce a type conforming to ``ilocalrepositorymain``.""" |