diff -r 32fe4af9971d -r f7c35a645c2e mercurial/debugcommands.py --- a/mercurial/debugcommands.py Mon Aug 21 16:56:38 2023 -0400 +++ b/mercurial/debugcommands.py Mon Aug 21 16:58:23 2023 -0400 @@ -1026,7 +1026,6 @@ note: the process is initiated from a full text of the revision to store. """ - opts = pycompat.byteskwargs(opts) if arg_2 is None: file_ = None rev = arg_1 @@ -1036,7 +1035,9 @@ rev = int(rev) - revlog = cmdutil.openrevlog(repo, b'debugdeltachain', file_, opts) + revlog = cmdutil.openrevlog( + repo, b'debugdeltachain', file_, pycompat.byteskwargs(opts) + ) p1r, p2r = revlog.parentrevs(rev) if source == b'full':