##// END OF EJS Templates
debug_revlog_stats: migrate `opts` to native kwargs
Matt Harbison -
r51863:f04568ad default
parent child Browse files
Show More
@@ -3917,10 +3917,9 b' def debugshell(ui, repo, **opts):'
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
@@ -3928,7 +3927,7 b' def debug_revlog_stats(ui, repo, **opts)'
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
General Comments 0
You need to be logged in to leave comments. Login now