Mercurial > hg
comparison mercurial/crecord.py @ 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 | 3d3b4ac369f2 |
children | f571ea254f75 |
comparison
equal
deleted
inserted
replaced
28542:71e12fc53b80 | 28543:f7874de435c5 |
---|---|
52 """Return True if the user wants to use curses | 52 """Return True if the user wants to use curses |
53 | 53 |
54 This method returns True if curses is found (and that python is built with | 54 This method returns True if curses is found (and that python is built with |
55 it) and that the user has the correct flag for the ui. | 55 it) and that the user has the correct flag for the ui. |
56 """ | 56 """ |
57 return curses and ui.configbool('experimental', 'crecord', False) | 57 return curses and ui.interface("chunkselector") == "curses" |
58 | 58 |
59 _origstdout = sys.__stdout__ # used by gethw() | 59 _origstdout = sys.__stdout__ # used by gethw() |
60 | 60 |
61 class patchnode(object): | 61 class patchnode(object): |
62 """abstract class for patch graph nodes | 62 """abstract class for patch graph nodes |