> with ui.configoverride(overrides, 'record'): > + if repo.vfs.exists('histedit-state'): > + raise error.Abort(_("histedit in progress, can't qrecord")) > cmdutil.dorecord(ui, repo, committomq, cmdsuggest, False, Maybe `cmdutil.checkunfinished()` will do the job.