manifest: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 01:29:27 -0400
changeset 50840 2c78ebaf4c2a
parent 50839 180ac919f062
child 50841 b4425b5bd80e
manifest: migrate `opts` to native kwargs
mercurial/commands.py
--- 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"))