diff -r a0674e916fb6 -r f254fc73d956 mercurial/hook.py --- a/mercurial/hook.py Thu Mar 03 17:39:20 2022 -0800 +++ b/mercurial/hook.py Thu Mar 03 18:28:30 2022 -0800 @@ -166,7 +166,7 @@ else: env[b'HGPLAIN'] = b'' - for k, v in pycompat.iteritems(args): + for k, v in args.items(): # transaction changes can accumulate MBs of data, so skip it # for external hooks if k == b'changes':