comparison mercurial/ui.py @ 40649:c36175456350

histedit: import chistedit curses UI from hg-experimental I don't tend to like curses interfaces, but this gets enough use at work that it seems like it's worth bringing into core. This is a minimal import from hg-experimental revision 4c7f33bf5f00, in that I've done the smallest amount of code movement and editing in order to import the functionality. .. feature:: `hg histedit` will now present a curses UI if curses is available and `ui.interface` or `ui.interface.histedit` is set to `curses`. Differential Revision: https://phab.mercurial-scm.org/D5146
author Augie Fackler <augie@google.com>
date Wed, 17 Oct 2018 17:15:42 -0400
parents 234c2d8c9e48
children c72a81bc2e82
comparison
equal deleted inserted replaced
40648:da4478ca0e32 40649:c36175456350
1243 1243
1244 featureinterfaces = { 1244 featureinterfaces = {
1245 "chunkselector": [ 1245 "chunkselector": [
1246 "text", 1246 "text",
1247 "curses", 1247 "curses",
1248 ] 1248 ],
1249 "histedit": [
1250 "text",
1251 "curses",
1252 ],
1249 } 1253 }
1250 1254
1251 # Feature-specific interface 1255 # Feature-specific interface
1252 if feature not in featureinterfaces.keys(): 1256 if feature not in featureinterfaces.keys():
1253 # Programming error, not user error 1257 # Programming error, not user error