# HG changeset patch # User Simon Farnsworth # Date 2016-03-14 15:01:27 # Node ID f7874de435c5845509860f16d245e07997101353 # Parent 71e12fc53b80180ca20e8192abf8ee4d70727fbe crecord: use ui.interface to choose curses interface use ui.interface to select curses mode, instead of experimental.crecord diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -54,7 +54,7 @@ def checkcurses(ui): 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() diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t --- a/tests/test-commit-interactive-curses.t +++ b/tests/test-commit-interactive-curses.t @@ -4,8 +4,8 @@ Set up a repo $ cat <> $HGRCPATH > [ui] > interactive = true + > interface = curses > [experimental] - > crecord = true > crecordtest = testModeCommands > EOF