comparison mercurial/crecord.py @ 30547: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
comparison
equal deleted inserted replaced
30546:9b674957e2e4 30547:5129ed3c2548
946 self.linesprintedtopadsofar += linesprinted 946 self.linesprintedtopadsofar += linesprinted
947 return t 947 return t
948 948
949 def _getstatuslinesegments(self): 949 def _getstatuslinesegments(self):
950 """-> [str]. return segments""" 950 """-> [str]. return segments"""
951 selected = self.currentselecteditem.applied
951 segments = [ 952 segments = [
952 _('Select hunks to record'), 953 _('Select hunks to record'),
953 '-', 954 '-',
954 _('[x]=selected **=collapsed'), 955 _('[x]=selected **=collapsed'),
955 _('c: confirm'), 956 _('c: confirm'),
956 _('q: abort'), 957 _('q: abort'),
957 _('arrow keys: move/expand/collapse'), 958 _('arrow keys: move/expand/collapse'),
958 _('space: select'), 959 _('space: deselect') if selected else _('space: select'),
959 _('?: help'), 960 _('?: help'),
960 ] 961 ]
961 return segments 962 return segments
962 963
963 def _getstatuslines(self): 964 def _getstatuslines(self):