[PATCH 2 of 2] crecord: use ui.interface to choose curses interface
Simon Farnsworth
simonfar at fb.com
Thu Mar 10 14:47:38 EST 2016
# HG changeset patch
# User Simon Farnsworth <simonfar at fb.com>
# Date 1457639167 0
# Thu Mar 10 19:46:07 2016 +0000
# Node ID ea0ec33267d78c83288160a57056637e53fd2644
# Parent 77d0ac209cc8555d887b35313fad25e947aab7fa
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 @@
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("chunkselection") == "curses"
_origstdout = sys.__stdout__ # used by gethw()
More information about the Mercurial-devel
mailing list