diff -r 6ce89165eaa0 -r 54849b65dc5f hgext/amend.py --- a/hgext/amend.py Thu Jun 10 10:53:43 2021 -0700 +++ b/hgext/amend.py Thu Jun 10 14:25:16 2021 -0700 @@ -16,7 +16,6 @@ from mercurial import ( cmdutil, commands, - pycompat, registrar, ) @@ -66,7 +65,7 @@ See :hg:`help commit` for more details. """ - cmdutil.checknotesize(ui, pycompat.byteskwargs(opts)) + cmdutil.check_note_size(opts) with repo.wlock(), repo.lock(): if not opts.get('logfile'):