children: migrate `opts` to native kwargs
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 15:30:39 -0400
changeset 50894 0c76520ec4cc
parent 50893 47af00b2217f
child 50895 5a22b2594d96
children: migrate `opts` to native kwargs
hgext/children.py
--- a/hgext/children.py	Sun Aug 20 15:24:58 2023 -0400
+++ b/hgext/children.py	Sun Aug 20 15:30:39 2023 -0400
@@ -67,8 +67,7 @@
     See :hg:`help log` and :hg:`help revsets.children`.
 
     """
-    opts = pycompat.byteskwargs(opts)
-    rev = opts.get(b'rev')
+    rev = opts.get('rev')
     ctx = logcmdutil.revsingle(repo, rev)
     if file_:
         fctx = repo.filectx(file_, changeid=ctx.rev())
@@ -76,7 +75,9 @@
     else:
         childctxs = ctx.children()
 
-    displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
+    displayer = logcmdutil.changesetdisplayer(
+        ui, repo, pycompat.byteskwargs(opts)
+    )
     for cctx in childctxs:
         displayer.show(cctx)
     displayer.close()