Mercurial > public > mercurial-scm > hg-stable
diff mercurial/crecord.py @ 42570:75fd9421440b
crecord: add "x" alias for space, remove test-only "TOGGLE" alias
Differential Revision: https://phab.mercurial-scm.org/D6618
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Mon, 08 Jul 2019 12:17:06 -0700 |
parents | 756326d54761 |
children | 3be6ff55095b |
line wrap: on
line diff
--- a/mercurial/crecord.py Mon Jul 08 12:15:37 2019 -0700 +++ b/mercurial/crecord.py Mon Jul 08 12:17:06 2019 -0700 @@ -1460,7 +1460,7 @@ can use crecord multiple times to split large changes into smaller changesets. the following are valid keystrokes: - [space] : (un-)select item ([~]/[x] = partly/fully applied) + x [space] : (un-)select item ([~]/[x] = partly/fully applied) [enter] : (un-)select item and go to next item of same type A : (un-)select all items up/down-arrow [k/j] : go to previous/next unfolded item @@ -1749,7 +1749,7 @@ elif test and keypressed in ['R']: self.opts['review'] = True return True - elif keypressed in [' '] or (test and keypressed in ["TOGGLE"]): + elif keypressed in [' ', 'x']: self.toggleapply() elif keypressed in ['\n', 'KEY_ENTER']: self.toggleapply()