Mercurial > hg-stable
changeset 30556:5129ed3c2548
crecord: change help text for the space key dynamically
A follow-up of the previous patch, to make the text simple and clear about
whether it's to "select" or "deselect".
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 28 Nov 2016 23:37:29 +0000 |
parents | 9b674957e2e4 |
children | 8d9745ff1e62 |
files | mercurial/crecord.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/crecord.py Mon Nov 28 23:33:02 2016 +0000 +++ b/mercurial/crecord.py Mon Nov 28 23:37:29 2016 +0000 @@ -948,6 +948,7 @@ def _getstatuslinesegments(self): """-> [str]. return segments""" + selected = self.currentselecteditem.applied segments = [ _('Select hunks to record'), '-', @@ -955,7 +956,7 @@ _('c: confirm'), _('q: abort'), _('arrow keys: move/expand/collapse'), - _('space: select'), + _('space: deselect') if selected else _('space: select'), _('?: help'), ] return segments