diff -r 13ad1b2ad3b4 -r 3bd013e8e024 mercurial/commands.py --- a/mercurial/commands.py Sun Aug 20 00:55:52 2023 -0400 +++ b/mercurial/commands.py Sun Aug 20 00:56:58 2023 -0400 @@ -1426,8 +1426,7 @@ Returns 0. """ - opts = pycompat.byteskwargs(opts) - revs = opts.get(b'rev') + revs = opts.get('rev') selectedbranches = None if revs: revs = logcmdutil.revrange(repo, revs) @@ -1435,7 +1434,7 @@ selectedbranches = {getbi(r)[0] for r in revs} ui.pager(b'branches') - fm = ui.formatter(b'branches', opts) + fm = ui.formatter(b'branches', pycompat.byteskwargs(opts)) hexfunc = fm.hexfunc allheads = set(repo.heads())