Mercurial > hg
diff mercurial/crecord.py @ 28543:f7874de435c5
crecord: use ui.interface to choose curses interface
use ui.interface to select curses mode, instead of experimental.crecord
author | Simon Farnsworth <simonfar@fb.com> |
---|---|
date | Mon, 14 Mar 2016 15:01:27 +0000 |
parents | 3d3b4ac369f2 |
children | f571ea254f75 |
line wrap: on
line diff
--- a/mercurial/crecord.py Mon Mar 14 15:01:27 2016 +0000 +++ b/mercurial/crecord.py Mon Mar 14 15:01:27 2016 +0000 @@ -54,7 +54,7 @@ This method returns True if curses is found (and that python is built with it) and that the user has the correct flag for the ui. """ - return curses and ui.configbool('experimental', 'crecord', False) + return curses and ui.interface("chunkselector") == "curses" _origstdout = sys.__stdout__ # used by gethw()