Mercurial > hg
changeset 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 | 71e12fc53b80 |
children | 4d93d73b8aec |
files | mercurial/crecord.py tests/test-commit-interactive-curses.t |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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()
--- a/tests/test-commit-interactive-curses.t Mon Mar 14 15:01:27 2016 +0000 +++ b/tests/test-commit-interactive-curses.t Mon Mar 14 15:01:27 2016 +0000 @@ -4,8 +4,8 @@ $ cat <<EOF >> $HGRCPATH > [ui] > interactive = true + > interface = curses > [experimental] - > crecord = true > crecordtest = testModeCommands > EOF