equal
deleted
inserted
replaced
794 options[b'maxchainlen'] = maxchainlen |
794 options[b'maxchainlen'] = maxchainlen |
795 |
795 |
796 for r in requirements: |
796 for r in requirements: |
797 if r.startswith(b'exp-compression-'): |
797 if r.startswith(b'exp-compression-'): |
798 options[b'compengine'] = r[len(b'exp-compression-'):] |
798 options[b'compengine'] = r[len(b'exp-compression-'):] |
|
799 |
|
800 options[b'zlib.level'] = ui.configint(b'storage', b'revlog.zlib.level') |
|
801 if options[b'zlib.level'] is not None: |
|
802 if not (0 <= options[b'zlib.level'] <= 9): |
|
803 msg = _('invalid value for `storage.revlog.zlib.level` config: %d') |
|
804 raise error.Abort(msg % options[b'zlib.level']) |
799 |
805 |
800 if repository.NARROW_REQUIREMENT in requirements: |
806 if repository.NARROW_REQUIREMENT in requirements: |
801 options[b'enableellipsis'] = True |
807 options[b'enableellipsis'] = True |
802 |
808 |
803 return options |
809 return options |