changeset 50840:2c78ebaf4c2a

manifest: migrate `opts` to native kwargs
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 20 Aug 2023 01:29:27 -0400
parents 180ac919f062
children b4425b5bd80e
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Aug 20 01:27:36 2023 -0400
+++ b/mercurial/commands.py	Sun Aug 20 01:29:27 2023 -0400
@@ -4821,10 +4821,9 @@
 
     Returns 0 on success.
     """
-    opts = pycompat.byteskwargs(opts)
-    fm = ui.formatter(b'manifest', opts)
-
-    if opts.get(b'all'):
+    fm = ui.formatter(b'manifest', pycompat.byteskwargs(opts))
+
+    if opts.get('all'):
         if rev or node:
             raise error.InputError(_(b"can't specify a revision with --all"))