equal
deleted
inserted
replaced
487 level = repo.ui.configint(b'storage', b'revlog.zlib.level') |
487 level = repo.ui.configint(b'storage', b'revlog.zlib.level') |
488 elif comp == b'zstd': |
488 elif comp == b'zstd': |
489 level = repo.ui.configint(b'storage', b'revlog.zstd.level') |
489 level = repo.ui.configint(b'storage', b'revlog.zstd.level') |
490 if level is None: |
490 if level is None: |
491 return b'default' |
491 return b'default' |
492 return bytes(level) |
492 return b"%d" % level |
493 |
493 |
494 @classmethod |
494 @classmethod |
495 def fromconfig(cls, repo): |
495 def fromconfig(cls, repo): |
496 comp = compressionengine.fromconfig(repo) |
496 comp = compressionengine.fromconfig(repo) |
497 level = None |
497 level = None |
499 level = repo.ui.configint(b'storage', b'revlog.zlib.level') |
499 level = repo.ui.configint(b'storage', b'revlog.zlib.level') |
500 elif comp == b'zstd': |
500 elif comp == b'zstd': |
501 level = repo.ui.configint(b'storage', b'revlog.zstd.level') |
501 level = repo.ui.configint(b'storage', b'revlog.zstd.level') |
502 if level is None: |
502 if level is None: |
503 return b'default' |
503 return b'default' |
504 return bytes(level) |
504 return b"%d" % level |
505 |
505 |
506 |
506 |
507 def find_format_upgrades(repo): |
507 def find_format_upgrades(repo): |
508 """returns a list of format upgrades which can be perform on the repo""" |
508 """returns a list of format upgrades which can be perform on the repo""" |
509 upgrades = [] |
509 upgrades = [] |