comparison mercurial/debugcommands.py @ 50967:f04568add4ee

debug_revlog_stats: migrate `opts` to native kwargs
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 21 Aug 2023 17:47:52 -0400
parents b28f794fe10a
children e032f47f5166
comparison
equal deleted inserted replaced
50966:b28f794fe10a 50967:f04568add4ee
3915 ] 3915 ]
3916 + cmdutil.formatteropts, 3916 + cmdutil.formatteropts,
3917 ) 3917 )
3918 def debug_revlog_stats(ui, repo, **opts): 3918 def debug_revlog_stats(ui, repo, **opts):
3919 """display statistics about revlogs in the store""" 3919 """display statistics about revlogs in the store"""
3920 opts = pycompat.byteskwargs(opts) 3920 changelog = opts["changelog"]
3921 changelog = opts[b"changelog"] 3921 manifest = opts["manifest"]
3922 manifest = opts[b"manifest"] 3922 filelogs = opts["filelogs"]
3923 filelogs = opts[b"filelogs"]
3924 3923
3925 if changelog is None and manifest is None and filelogs is None: 3924 if changelog is None and manifest is None and filelogs is None:
3926 changelog = True 3925 changelog = True
3927 manifest = True 3926 manifest = True
3928 filelogs = True 3927 filelogs = True
3929 3928
3930 repo = repo.unfiltered() 3929 repo = repo.unfiltered()
3931 fm = ui.formatter(b'debug-revlog-stats', opts) 3930 fm = ui.formatter(b'debug-revlog-stats', pycompat.byteskwargs(opts))
3932 revlog_debug.debug_revlog_stats(repo, fm, changelog, manifest, filelogs) 3931 revlog_debug.debug_revlog_stats(repo, fm, changelog, manifest, filelogs)
3933 fm.end() 3932 fm.end()
3934 3933
3935 3934
3936 @command( 3935 @command(