changeset 27531:84d686cb62c4 stable

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.
author Sean Farley <sean@farley.io>
date Tue, 15 Dec 2015 16:01:45 -0800
parents ba30ef5bba95
children 1be02894dd6f
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Tue Dec 15 16:00:06 2015 -0800
+++ b/mercurial/cmdutil.py	Tue Dec 15 16:01:45 2015 -0800
@@ -66,7 +66,7 @@
     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: