# HG changeset patch # User Sean Farley # Date 2015-12-16 00:01:45 # Node ID 84d686cb62c45077e862f28b51f87d5dc29c2b34 # Parent ba30ef5bba95307ed5b1ca2a9ae1ff7b86220178 cmdutil: use crecordmod.checkcurses Instead of blindly trusting the user's experimental.crecord, we use checkcurses to abstract that logic so that we can handle the case where python was not built with curses. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -66,7 +66,7 @@ def recordfilter(ui, originalhunks, oper what kind of filtering they are doing: reverting, committing, shelving, etc. *operation* has to be a translated string. """ - usecurses = ui.configbool('experimental', 'crecord', False) + usecurses = crecordmod.checkcurses(ui) testfile = ui.config('experimental', 'crecordtest', None) oldwrite = setupwrapcolorwrite(ui) try: