Mercurial > hg-stable
changeset 35091:57c79542bebb
crecord: fix revert -ir '.^' crash caused by 3649c3f2cd
3649c3f2cd (revert: do not reverse hunks in interactive when REV is not
parent (issue5096)) changed the record "operation" for the text version but
missed the curses version. Without this patch, running
`hg revert -ir '.^' --config ui.interface=curses` would crash with:
ProgrammingError: unexpected operation: apply
Differential Revision: https://phab.mercurial-scm.org/D1381
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 13 Nov 2017 18:22:25 -0800 |
parents | 929858db4d22 |
children | 4fb489a998c9 |
files | mercurial/crecord.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/crecord.py Thu Nov 16 17:11:14 2017 -0800 +++ b/mercurial/crecord.py Mon Nov 13 18:22:25 2017 -0800 @@ -555,7 +555,7 @@ return chunkselector.opts _headermessages = { # {operation: text} - 'revert': _('Select hunks to revert'), + 'apply': _('Select hunks to apply'), 'discard': _('Select hunks to discard'), None: _('Select hunks to record'), }