qrecord during histedit may lead to deadlock-like situations. qpop will throw
an error on called during histedit even after qrecord-ing those changes. This
patch makes qrecord to abort on histedit.
Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG4d21ebc4cb47: mq: disable qrecord during histedit (issue5981)
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
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.